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

:nth-child(n) 选择器

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

 

 

 

 

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

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

 

 

 

 

posted @ 2020-03-26 19:45  XANN  阅读(155)  评论(0编辑  收藏  举报