:nth-child(n) 选择器

  :nth-child(n) 选择器是从父元素的第一个子元素开始数。

:nth-child(n) 选择器和 :nth-of-type(n) 选择器

 

 

 :nth-child(n) 选择器和 :nth-of-type(n) 选择器

 

:nth-of-type(n) 选择器

  :nth-of-type(n) 选择器是从该特定类型的第一个开始数

:nth-child(n) 选择器和 :nth-of-type(n) 选择器

 

 

 :nth-child(n) 选择器和 :nth-of-type(n) 选择器

 

相关文章: