CSS实现IE下奇数行与偶数行、奇数列与偶数列背景颜色的变换

来源:互联网 发布:九星照命解法和算法 编辑:程序博客网 时间:2024/05/20 18:42

<style>
table tr{
    background:expression(this.rowIndex%2==0?"#fff":"#eee");
}
table td{
    background:expression(this.cellIndex%2==0?"#550000":"#005500");
}
</style>

原创粉丝点击