A lot of new stuff has been added in CSS3! Some things play play will be played bad (oh, just nothing with very chicken help), this to summarize what I think useful, do not like to spray! Please point out if you have any errors! Absolutely self-summed, inappropriate hand party!
The property selector: div[index]{background:red} indicates that the background with the Index property below the div is red div[index=a]{background:red} represents the color of the div for the custom attribute index=a below the div Turn red. Div[index~=a]{background:red} As long as the index attribute in the DIV with the word A is in effect. Div[index*=a]{background:red} As long as the index attribute in the div with a letter is effective. Div[index^=a]{background:red} begins with a div[index$=a]{background:red} with a end div[index|=a]{background:red} as long as a-a Of
When more than one is needed:Div[key1=value1][key2=value2][key3=value3] .... {background:red}Structural pseudo-Class selector: Element:nth-child (n) The first few elements from the beginning!! Element:nth-child (odd) odd element:nth-child (even) even Element:nth-last-child (n) starting from the penultimate number Element:last-ch ILD the last Element:first-child first text pseudo-element p:first-line{} first line p:first-letter{} first word p::selection{} when text is selected :: Represents the super Pseudo class when there is no p when representing all the others: empty empty element: Disabled element: Enabled element: Checked selected element: not (some) does not contain elements of some: the corresponding element of the target anchor point Vegetarian:: before{content: '} must have content attribute:: afert{content: '}
Some of the new useful selectors in CSS3