css3选择器

 

奇数偶数 指定第几个

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

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

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

posted @ 2015-10-19 17:33  菜园子丶  阅读(106)  评论(0编辑  收藏  举报