CSS inherit and auto Usage Analysis

Source: Internet
Author: User
Tags css inherit

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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.