CSS3 selector (i)

Source: Internet
Author: User

E[att^= ' Val ']

Select any character whose attribute value begins with Val


E[att$= ' Val ']

Select any character with the attribute value ending in Val


E[att*= ' Val ']

Select attribute value contains any character of Val


: Root

HTML layer


: Not ([])

With jquery


: Empty

Select an element without any content


: Target

Target element of a flag that matches the URL of a document


: First-child

Select the first child element of a parent element


: Last-child
: Nth-child (n)

The selector is used to locate one or more specific child elements of a parent element. where "n" is its argument and can be an integer value (1,2,3,4), it can be an expression (2n+1,-n+5), and a keyword (odd, even), but the starting value of parameter n is always 1, not 0. That is, the value of the parameter n is 0 o'clock, and the selector will not select any matching elements.


: Nth-last-child (n)

Evaluates from the last child element of the parent element, as in the previous attribute


: First-of-type:

Specifies the first X element of a parent element


: Nth-of-type (n)

Select a seed element type specified in the parent element


: Nth-last-of-type (n)

Selects a seed element type specified in the parent element, starting from the last child element


: First-of-type

Select is the first child element of a type under the parent element


: Last-of-type

Select is the last child element of a type under the parent element


: Only-child

The selector selects an element that has only one child element and only one child element.


: Only-of-type

The selector selects only one (unique) seed element.


CSS3 selector (i)

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.