Press "Enter" to skip to content

CSS Selectors

  • .class
  • #id
  • *
  • element
  • element,element
  • element element
  • element>element
  • element+element
  • [attribute]
  • [attribute=value]
  • [attribute~=value]
  • [attribute|=value]
  • :link
  • :visited
  • :active
  • :hover
  • :focus
  • :first-letter
  • :first-line
  • :first-child
  • :before
  • :after
  • :lang(language)
  • element1~element2
  • [attribute^=value]
  • [attribute$=value]
  • [attribute*=value]
  • :first-of-type
  • :last-of-type
  • :only-of-type
  • :only-child
  • :nth-child(n)
  • :nth-last-child(n)
  • :nth-of-type(n)
  • :nth-last-of-type(n)
  • :last-child p:last-child
  • :root
  • :empty
  • :target
  • :enabled
  • :disabled
  • :checked
  • :not(selector)
  • ::selection

Be First to Comment

发表评论

电子邮件地址不会被公开。 必填项已用*标注