/*表格奇数行样式/ tr:nth-child(2n+1) { background-color: #AFD6F6; } /*表格偶数行样式/ tr:nth-child(2n) { background-color: #449ADE; } /*表格行鼠标经过样式/ tr:hover { background-color: #F1D296; }