【发布时间】:2017-07-30 05:14:19
【问题描述】:
我有一张这样的桌子:
<table id="someID">
<tr><td>example text</td></tr>
<tr><td>example text</td><td>example text</td></tr>
<tr><td>example text</td></tr>
<tr><td>example text</td><td>example text</td></tr>
</table>
我想仅使用 CSS 隐藏表格中的第二行和第三行。此表是预定义的,因此我无法使用 id 或类标签来指定要设置样式的行,我正在寻找一些针对特定行的解决方案。
如果这可以用 CSS 完成,有人可以告诉我如何做到这一点。
【问题讨论】:
标签: css html-table css-tables tablerow