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

:nth-child(n) 选择器

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

 

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

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

 

猜你喜欢

转载自www.cnblogs.com/XiaMengJie/p/12576810.html
今日推荐