首页 > 代码库 > css隔行换色

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; width:100px; text-align: center}