table tr:nth-child(odd){background:#efefef;}#奇数行
table tr:nth-child(even){background:#efefef;}#偶数行
table td:nth-child(odd){color:red;}#奇数列
table td:nth-child(even){color:black;}#偶数列
table tr:nth-child(10){background:#efefef;color:red;}#第10行
table td:nth-child(10){background:#efefef;color:black;}#第10列
表格nth-child设置行列样式
最新推荐文章于 2023-08-02 11:07:43 发布