Css2.1 Selector

Source: Internet
Author: User
  1. Description of character type selection mode
  2. Wildcard character * matches all elements
  3. Type selector e matches all eElements
  4. Class. info matches all elements whose class value is equal to info.
  5. ID # footer matches all elements whose attribute id value is equal to footer
  6. The descendant selector e f matches all f elements of the descendant E.
  7. Sub-Selector E> F matches all e sub-elements F
  8. The neighboring selector e + F matches all E's sibling elements F
  9. The attribute selector E [ATT] matches all the eElements with the ATT attribute, regardless of the attribute value.
  10. The attribute selector E [ATT = Val] matches all Eelements with the ATT attribute and the value is Val.
  11. Attribute selector E [ATT ~ = Val] matches all Eelements that have the ATT attribute and Val is a complete word in the attribute value.
  12. The attribute selector E [ATT | = Val] matches the string that owns the ATT attribute and starts with its value.
  13. : First-Child pseudo Class E: First-Child matches all the first node eElements in the parent Element
  14. Link pseudo-Class E: link matches all unaccessed links
  15. E: visited matches all the accessed links.
  16. Dynamic pseudo-Class E: Active matches all links in the active state
  17. E: link when the hover matches the mouse
  18. E: the focus matches the link in the focus state.
  19. : Language pseudo Class E: Lang (c) matches the E element whose language is C.
  20. : First-line pseudo Class E: first-line matches the first line of content in Element E.
  21. : First-letter pseudo Class E: First-letter matches the first letter in the Eelement
  22. : Before and: After E: Before match the content inserted before (after) The Eelement.
  23. Pseudo Class E: After

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.