<style>
table tr{
background:expression(this.rowIndex%2==0?"#fff":"#eee");
}
table td{
background:expression(this.cellIndex%2==0?"#550000":"#005500");
}
</style>
CSS实现IE下奇数行与偶数行、奇数列与偶数列背景颜色的变换
最新推荐文章于 2023-04-07 21:57:49 发布
<style>
table tr{
background:expression(this.rowIndex%2==0?"#fff":"#eee");
}
table td{
background:expression(this.cellIndex%2==0?"#550000":"#005500");
}
</style>