css selector
selector weight
in css, the right to choose which of their weights high, who left the style.
Tag selector weights are. 1
Class Selector a weight of 10
I D is the weight selector 100
weight pattern is a weight between 1000 lines
with keywords! css attribute weights imporant weight is infinite
weight calculation
selector above weights are superimposed, the sum of the superimposed is the sum of the weights of the selector
equally weighted when the latter overwrite the previous
type css selector
label weights 0001
class class weight is 0010
LD weight is 0100
wildcard representing all tags weight is 0000
descendant selector ap weights are cumulative 0011
progeny selector a> b weight is 0010
a # AS intersection selector
and diversity selector a, b
several forms Css of
1. the inter-row style is written in the style tag acts as a tag attribute value
2. inline style
3. outreach style
two characteristics Css selector
1. inherits all the attributes of the elements related to the quilt will be about the text font inheritance. And the weight is 0000
2. The stacked nature is to solve a major small capacity selector right, is to see that the right choice is important. Who's right major who to listen to. 0010 255 0001 equivalent
The type and characteristics of CSS selectors
Guess you like
Origin www.cnblogs.com/guoyaoning/p/11909518.html
Ranking