Introduction:
Today, at the blue Point of Yang's blog "CSS style sheet to continue the relationship between spaces and no space", thinking about it, originally wanted to write "CSS style compound definition and compound call and simple modular design", but the content is too large, or a little simple benefits. So change to "CSS style--from the space to start" bar. The folk prescription of treating vitiligo in Anshan www.0412r.com
One, the space operator
(1) CSS language
To put it simply, the CSS language is similar to the JS language, which is parsed by the local browser after downloading through the client. And the CSS language is very low-level "weak type" language, from JS this kind of object-based relatively perfect "weak type" language, is still quite a distance. Be aware that the CSS style is defined, and that the rendering of the style is based on the document flow order and the CSS precedence level, which the browser has identified after its own calculation. and the browser has ignored and error correction function (especially in IE), so the syntax of the style definition has errors, does not affect the browser to work properly, but show no due effect. When we design the definition of style, the error is more distressing, its essential reason is that the weak type of CSS language itself is not strictly prohibited, so we should pay more attention to the definition of CSS is forbidden, in order to make less mistakes, faster and better to complete the work. Anshan treatment of vitiligo specialist www.0412r.com
(2) Operators for CSS
First of all, the CSS language operators are not many, there is. #{}: "; There is also a very important space. These operators are commonly used for defining declaration symbols. And in the CSS style definition, the space is a bit extraordinary, we can think of it as in. NET or in a namespace or class package definition in Java. Operator. In other words, we can think of a space as the arrow pointing to the path, indicating the parent-child level relationship of the HTML tag. CSS is associated with HTML, that is, every definition of CSS corresponds to "an HTML tag" or "A piece of modular HTML code," and HTML can call multiple style classes. A CSS style class can "compound definitions" based on HTML code, and an HTML tag can also "compound invoke" multiple style classes. So, the complexity of CSS style definitions is inseparable from the associated HTML.
CSS Modular design--From space