How to Implement CSS filtering like Jquery _ jquery-js tutorial
Source: Internet
Author: User
Using Jquery to operate HTML elements is very convenient and flexible to search. In fact, CSS can also be used for searching and filtering flexibly and conveniently. Some of the following are some of the useful operations, which will be added later. Syntax description:
E -- Element
Att -- attribute
Val -- Attribute Value
E: first-child
E: last-child
Matching the Eelement with the att attribute in the document
Syntax: E [att]
Matches the Eelement in the document with the att attribute and its value is val.
Syntax: E [att = val]
Matching the Eelement in the document with the att attribute and one of the values (multiple values are separated by spaces) is val (val cannot contain spaces)
Syntax: E [att ~ = Val]
Matching an Eelement with the att attribute and one of the values is val, or followed by a hyphen starting with val
Syntax: E [att | = val]
Matches the Eelement in the document with the att attribute and Its Value prefix is val.
Syntax: E [att ^ = val]
Matches the Eelement in the document with the att attribute and Its Value suffix is val.
Syntax: E [att $ = val]
Matching the Eelement with the att attribute and val in the document
Syntax: E [att * = val]
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.