父元素下的奇数偶数元素选择器[nth-child-odd/even]

table tr:nth-child(odd):hover{background:gainsboro}
table tr:nth-child(even):hover{background:greenyellow}

猜你喜欢

转载自blog.csdn.net/qq_26239917/article/details/88413874
今日推荐