我有一张 table ,在 tr 中我有 7 个。我想为 tr 的第三个 child 设置 display: none
并且只为那个 child 设置!
如何设置这种风格?
最佳答案
如果你使用的是 JQuery,你可以这样做:
$('tr').find('td:eq(3)').hide();
或者,你可以用 css 做:
tr > td:nth-child(3) {显示:无;}
关于css - 如何为 tr 的第三个 child 设置样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27143048/