1 2 3 4 5 6 7 | tr:nth-of-type(even){ background-color: #F3F3F3; } tr:nth-of-type(odd){ background-color: #DDDDDD; } |
1 | table tr:nth-child(n) |
1 | table tr:nth-child(n+2) |
1 | table tr:nth-child(2n) |
1 | table tr:nth-child(2n+4) |
1 2 3 | td:nth-child(n+2){ text-align: right; } |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |