css隔行换色

.tab1 tr:nth-of-type(odd){ background:#eeeeee;}
.tab1 tr:nth-of-type(even){ background:#f8f8f8;}
.tab1 tr td{height: 30px; border-bottom: 1px solid #fff;  border-right: 1px solid #fff; padding: 0 10px;}
.tab1 tr td:first-child{color:#2e5f99; 100px; text-align: center}
原文地址:https://www.cnblogs.com/wesky/p/3904957.html