table

1 style{
2     table tr:nth child(odd){
3         background:red;
4         }/*基数行背景红*/
5     table tr:nth child(even){
6         background:blue;
7         }/*偶数行背景蓝*/
8     }
9  

 

posted @ 2017-04-13 12:13  Ajay_er  阅读(92)  评论(0编辑  收藏  举报