.box .bg tr:nth-child(1){ background: #999999; } .box .bg tr:nth-child(2n){ background: #eeeeee; } <style></style>中