CSSPod
  • Home
  • Contact
  • 求贤

pseudo-class

A collection of 1 post

CSS

:nth-child 和 :nth-of-type 的区别

基本语法 :nth-child(an+b) 选择符匹配有父元素、前面有 an+b-1 个兄弟元素的元素。 element:nth-child(an + b) { style properties } :nth-of-type 选择符匹配有父元素、前面有 an+b-1 个同名兄弟元素的...

  • minwe
    minwe
2 min read
CSSPod © 2023
Latest Posts Ghost