css :nth-child() 使用

1.  :nth-child(x) 里面直接写数字,x从1开始数字

2. :nth-child(2n) 倍数写法

3. :nth-child(3n+4)    倍数分组分配 :分红n分,每份3个,取每份的第四个

4. :nth-child(-3n+4)    反向倍数分组分配 :分红n分,每份3个,取每份的第四个

5. :nth-child(oven)/ :nth-child(odd)   奇偶匹配

相关文章
相关标签/搜索