一个简单的伪类选择器

:nth-child(even) or tr:nth-child(2n)
表示 HTML 表格中的偶数行
tr:nth-child(odd) or tr:nth-child(2n+1)
表示 HTML 表格中的奇数行

posted @ 2024-03-29 17:44  jialiangzai  阅读(8)  评论(0)    收藏  举报