CSS Selectors
1) [attribute] base on attribute
A[href] {text-decoration:none;}
2) [Attribute=val] base on the value of
a[href= "www.cxybl.com"]{Text-decoration:none;}
3) [Attribute~=val] contain the space-separated attribute somewhere in the value
a[title~= "TV HD Digital"] {Text-decoration:none}
/* If title ' s value contains the word ' TV ' or ' HD ' or ' digital ', then apply the CSS * *
4) [Attribute=val] contain the attribute with a hyphen, must start with the value
A[title= "Apple"] {color:red}
* *
link *
Css3
1) [Attribute^=val] attribute ' s value begins with Val
a[href^= "mailto:"] {color:red;}
2) [Attribute$=val] attribute ' s value ends with Val
a[href$= '. RSS '] {color:red}
3) [Attribute*=val] attribute value is anywhere within Val
A[href *= "username"] {color:red;} This article is linked to http://www.cxybl.com/html/wyzz/CSS/20120708/31756.html