/* 偶数行背景使用样式: */
table tr:nth-child(even){
background:cadetblue;
}
/* 奇数行背景使用样式: */
table tr:nth-child(odd){
background:darkslategray;
}
转载于:https://www.cnblogs.com/Ian-weber/p/11176069.html