Commonly used CSS selectors

  • ID selector, class selector, label selector, property selector, pseudo class selector, descendant selector

weighing

  • On the same level

    • ! Important > Inline Style > ID Selector > Class Selector > (Label Selector, Pseudo Class Selector, Property Selector)
  • Under different levels

    • Normally, the higher the weight, the higher the priority, but there has been no specific weight, so the deeper the level of development, the higher the priority

additional

  • This article is published through multiple platforms of “We Media” and will not be maintained after publication. If you have any objection to the content, you can discuss it in the GitHub below
  • The ongoing maintenance / 500 + face questions before update/notes 】 https://github.com/noxussj/In…
  • [3D city modeling using three. JS (Zhuhai City)] https://3d.noxussj.top/