table隔行变色

table tr:nth-child(2n) {
        background: #EEF8F0;
    }
    table tr:nth-child(2n+1) {
        background: #C3FFC8;
    
原文地址:https://www.cnblogs.com/superMay/p/4425081.html