CSS3 the newly added selector

Source: Internet
Author: User

e~f: Selects all sibling elements after the E element F. e[att*= "Val"]: Select the e element with the ATT attribute and the property value as a string containing Val. e[att^= "Val"]: Select the e element that has the ATT attribute and the property value is a string that begins with Val. e[att$= "Val"]: Select the e element that has the ATT attribute and the property value is the string ending in Val. E:not (): matches an element that does not contain an S-selector e.

E:root : matches the E element in the document.

E:only-child matches only one child element of the parent element, E. ( for this property to take effect, the E object must be a child of an object.) )

E:last-child : matches the last child element of the parent element, E.

e:nth-child (n) : matches the nth child element e of the parent element. for this property to take effect, the E object must be a child element of an object.

e:nth-last-child (n) : matches the inverse nth child element e of the parent element. for this property to take effect, the E object must be a child element of an object.

E:first-of-type : matches the first sibling element in the same type, E.

E:last-of-type : matches the last sibling element in the same type.

E:only-of-type : matches only one sibling element of the same type, E.

e:nth-of-type (n) : matches the nth sibling element e in the same type.

e:nth-last-of-type (n) : matches the reciprocal nth sibling of the same type.

E:empty : matches the element e without any child elements, including the text node.

e:checked : matches the selected element e in the user interface. (used when input type is radio and checkbox).

e:enabled : matches the element e that is in the available state on the user interface.

e:disabled : matches element E in the disabled state on the user interface.

E:target : matches the E element pointed to by the related URL.

e::selection : sets the style of the object when it is selected.

CSS3 the newly added selector

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.