Home > Article > Web Front-end > CSS inherit and auto usage analysis_Experience exchange
It is usually a very small value. After layers of amplification and distortion, the entire structure will be out of shape. CSS is a very simple language, easy to learn and use, but it is also the most prone to garbage code. This is due to not studying the language in depth. In my opinion, CSS is composed of the following three blocks: default value, inheritance system and weighted system. The default value is the attribute specified by the browser by default if the user does not set the attribute. The CSS framework basically has a file called reset.css, which is used to reset it and eliminate the differences between browsers. The inheritance system is what we will focus on below. The weighting system, that is, the issue of priority, is beyond the scope of this article and will not be discussed further. In addition, these three things are all facing the invasion of IE Bug, which is very harmful, so you should stop it yourself (laughs).
In CSS, many properties can be inherited. For example, if the font of a certain paragraph is set to white, the font of its element does not need to be set or is set to inherit, it will be white. These attributes are called inherited properties. It will get the calculated and converted value of the corresponding attribute from the parent element. If the parent element is in the same situation as it, it will continue to look up, and finally use browse if it is not found. The default value of the device.
The following is a list of inherited properties:
Ruby | Rouvre |
---|---|
By | Situ Zhengmei |
Ruby | Rouvre |
---|---|
By | Situ Zhengmei |