/设置奇数行颜色/
table tr:nth-child(odd)
{
background: #ccc;
}
/设置偶数行颜色/
table tr:nth-child(even)
{
background: #ccc;
}
CSS table表格隔行变色
最新推荐文章于 2024-07-10 10:14:49 发布
/设置奇数行颜色/
table tr:nth-child(odd)
{
background: #ccc;
}
/设置偶数行颜色/
table tr:nth-child(even)
{
background: #ccc;
}