Editing JavaScript/Notes/ClassnameSwap
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 51: | Line 51: | ||
CSS Selector specificity is determined four numbers, a-b-c-d, in a number system with a large base. | CSS Selector specificity is determined four numbers, a-b-c-d, in a number system with a large base. | ||
<blockquote cite="http://www.w3.org/TR/CSS2/cascade.html#specificity"> | <blockquote cite="http://www.w3.org/TR/CSS2/cascade.html#specificity"> | ||
# count 1 if the declaration is from is a 'style' attribute rather than a rule with a selector, 0 otherwise (= a) (In HTML, values of an element's "style" attribute are style sheet rules. These rules have no selectors, so a=1, b=0, c=0, and d=0.) | # count 1 if the declaration is from is a 'style' attribute rather than a rule with a selector, 0 otherwise (= a) (In HTML, values of an element's "style" attribute are style sheet rules. These rules have no selectors, so a=1, b=0, c=0, and d=0.) |