It is usually a very small value. After the layer-by-layer amplification and distortion, the entire layout is distorted. CSS is a simple language that is easy to learn and use, but also the easiest way to get rid of spam. Code . This is because we have not studied this language in depth. In my opinion, CSS consists of the following three parts: Default Value, inherited system and weighted system. Default value, that is, the default attribute specified by the browser when the user does not set the attribute. The cssframe has a file named reset.css, Which is reset to eliminate the differences between browsers. Inheritance systems are the things to be discussed below. The weighted system, that is, the priority issue, is not discussed in this article. In addition, these three things all face the attack of IE bug, which is very harmful. Let's take a break (Laugh ).
In CSS, many attributes can be inherited. For example, if the font of a paragraph is set to white, the font of the element does not need to be set or set to inhert. It is white. These attributes are called the inherited property, which obtains the calculated and converted value (computed 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 the default value of the browser.
The following is a list of inherited properties:Copy codeThe Code is as follows: border-collapse
Border-spacing
Caption-side
Color
Cursor
Direction
Empty-Cells
Font
Font-family
Font-stretch
Font-size
Font-size-adjust
Font-style
Font-variant
Font-weight
Letter-spacing
Line-height
List-style
Opacity
List-style-Image
List-style-type
Quotes
Text-align
Text-indent
Text-Transform
White-space
Word-spacing
Dir = "LTR" lang = "ZH-CN">
Parent Element
Child Element