Hiding table data using

前端 未结 10 1104
轻奢々
轻奢々 2020-12-15 16:22

So, I\'ve hidden whole tables like this, which works fine:

10条回答
  •  执念已碎
    2020-12-15 16:55

    Unfortuantely, as div elements can't be direct descendants of table elements, the way I know to do this is to apply the CSS rules you want to each tr element that you want to apply it to.

Test Table
Test Table
123456789
123456789
123456789
123456789
123456789

If you have more than one CSS rule to apply to the rows in question, give the applicable rows a class instead and offload the rules to external CSS.

Test Table
123456789
123456789
123456789
123456789
123456789

提交回复
热议问题