table隔行变色

来源:互联网 发布:淘宝怎么人工投诉电话 编辑:程序博客网 时间:2024/05/21 14:44
tr {
                background: #d0d0d0;
            }
            
            tr:nth-child(2n) {
                background: #ffffff;
            }
            
            tr {
                background-color: expression((this.sectionRowIndex % 2==0) ? "#FF3": "#6F9");
            }
原创粉丝点击