css3选择器

奇数偶数 指定第几个

table tr:nth-child(odd){background:#F4F4F4;} 

table td:nth-child(even){color:#C00;}

table tr:nth-child(5){background:#73B1E0;color:#FFF;}

原文地址:https://www.cnblogs.com/Greenzgz/p/4892490.html