2024-05-30HTML历理 隔N行变N行色/*隔行变色*/.m-tb2ntr:nth-child(2n){background-color:#f9f9f9;}.m-tb2ntr:hover{background-color:#f2f2f2;}.m-tb4ntr:nth-child(4n+3),.m-tb4ntr:nth-child(4n+4){background-color:#f9f9f9;}.m-tb6ntr:nth-child(6n+4),.m-tb6ntr:nth-child(6n+5),.m-tb6ntr:n