css 选择器 可以过滤后的选择吗?
資深大佬 : coderabbit 29
html 结构体
<tr> <th class="ta-table__cell ta-table__column">Postcode</th> <th class="ta-table__cell ta-table__column" style="text-align: center;">Action</th><th class="ta-table__cell ta-table__column ta-table__hidden">Name</th> <th class="ta-table__cell ta-table__column ta-table__hidden">Age</th> <th class="ta-table__cell ta-table__column ta-table__hidden">Province</th> <th class="ta-table__cell ta-table__column ta-table__hidden">City</th> <th class="ta-table__cell ta-table__column ta-table__hidden">Address</th> </tr>
现在我想 非
ta-table__hidden
类的最后一个元素去掉它的边框, 也就是 Action 例
border-right-color: transparent
但是我通过选择器排除不掉,last-child 也是父子的最后一个又并不是指定某个元素的最后一个。
大佬有話說 (8)