table tr:nth-child(odd){ background: #ccc; } 奇数行背景 table tr:nth-child(even){ background: #ccc; } 偶数行背景