A list of supported CSS selectors when invoking g (..)

Source: Internet
Author: User
A list of supported CSS selectors when invoking g (..)

At it's most basic, gimme is a utility for retrieving lots of Elements
Quickly and then acting upon all of them at once. This is done through
A call to the G (...) function.
The G (...) function takes one
Parameter: A string formatted like a CSS selector which indicates which
Elements you want gimme to retrieve for you.

The following is a list of currently support CSS selectors (more to come );
* (Univeral selector) Matches any element
E Matches NY e element (e.g. An element of Type E)
E F Matches any F element that is a descendant of an E Element
E> F Matches any F element that is a direct child of an E Element
E + F Matches any F element immediately preceded by an e Element
E ~ F Matches any F element that is a following sibling of an E Element
E [Foo] Matches any E element that has the attribute Foo (regardless of its value)
E [Foo = "warning"] Matches any E element whose Foo attribute is exactly "warning"
E [Foo ^ = "war"] Matches any E element whose Foo attribute starts with "war"
E [Foo $ = "ing"] Matches any E element whose Foo attribute ends with "ing"
E [Lang | = "en"] Matches any E element whose lang attribute has a hyphen-separated list of values beginning (from the left) with "EN"
E. Warning Matches any E element that has the class "warning" applied to it
E. Warning. Severe Matches any E element that has both classes "warning" and "severe" applied to it
# ID Matches any element whose ID attribute is exactly ID
E # ID Matches any E element whose ID attribute is exactly ID
E: First-child Matches an e element, first child of its parent
E: Last-child Matches an e element, last child of its parent
E: Nth-child (N) An E element, the n-th child of its parent
Todo:

    1. E [ATTR | Val]
    2. E: Enabled
    3. E: Disabled
    4. E: checked
    5. E: Target
    6. E: Not
    7. E: Root
    8. E: empty
Related Article

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.