摘要: 使用::nth-child 选择器 tr:nth-child(odd) { background-color: #ccc; } tr:nth-child(even) { background-color: #F9F9F9; } odd 奇数行even 偶数行效果: 阅读全文
posted @ 2019-08-05 14:54 Jaye8584 阅读(3877) 评论(0) 推荐(1) 编辑