0
奇数行选择给定一个表色彩行后仍/ css中
<table>
<tr class="sechead">...
<tr>...
<tr>...
<tr class="sechead">...
<tr>...
<tr>...
</table>
我曾尝试以下。我希望它能够替换sechead之后的行的颜色。
table tr.sechead:nth-child(even) ~ tr{background-color:rgb(75,172,198);}
table tr.sechead:nth-child(odd) ~ tr{background-color:rgb(153,129,189);}
它用相同的颜色对所有行着色。任何可能的解决方案?
它的罚款。我有一个问题,即我的CMS系统不允许我创建一个没有进入源代码视图的表格(对我而言,但不适合客户,但谢谢。 –