When making pages, it is often necessary to display or hide part of the content in a table according to different operations. To hide a row, use the
tag directly. When hiding multiple rows, it is very convenient to use
.
Form content |
Multiple lines of content |
Multiple lines of content |
Using js to control the style display to show and hide is very convenient. I heard that this can also control the order of display when the web page is loaded. Content1 will be displayed before content2, instead of being displayed together after the table is loaded. I have not tested it, but it will be useful when there is a lot of table data.
During use, I found that
cannot be nested, and inexplicable problems will occur.
is used to define the body of the table. Not to mention defining multiple bodies, adding another body within the body is indeed inconsistent. W3C's definition of it seems correct when used like the following, but it is actually wrong.
Form content |
Multiple lines of content |
Multiple lines of content |
When making prototype pages, is used in order to achieve interactive effects. , not needed in actual background programming, just output the corresponding table body based on judgment.
When designing the page, the table design uses
and other tags that were not commonly used before plus CSS definitions to achieve many good effects. It is standard, semantic, and very powerful. I read a related article and saved it.
|