css3奇偶选择器

版权声明:企业站,小游戏制作 https://blog.csdn.net/qq947289507/article/details/74821074

数学里面的奇数偶数,上代码

tr td:nth-of-type(odd){ margin-left: 20px;}奇数行   
tr td:nth-of-type(even){margin-left: 10px;}偶数行   

猜你喜欢

转载自blog.csdn.net/qq947289507/article/details/74821074