Home >Web Front-end >JS Tutorial >How to make your CSS filter like Jquery_jquery
Syntax description:
E -- element
att -- attribute
val -- attribute value
E:first-child
E:last-child
Matches the E element with the att attribute in the document
Syntax: E[att]
Matches the E element with the att attribute in the document and its value is val
Syntax: E[att= val]
Matches the E element
that has the att attribute in the document and one of its values (multiple values are separated by spaces) is val (val cannot contain spaces). Syntax: E[att~=val]
Matches an E element in the document that has the att attribute and one of its values is val, or starts with val followed by a hyphen
Syntax: E[att|=val]
Match the E element in the document that has the att attribute and the prefix of its value is val
Syntax: E[att^=val]
Match the E element that has the att attribute in the document and the suffix of its value is val Element
Syntax: E[att$=val]
Matches the E element in the document that has the att attribute and contains val
Syntax: E[att*=val]