Properties that can be inherited in CSS

Source: Internet
Author: User
This article introduces the content of the CSS can inherit the attributes, has a certain reference value, now share to everyone, have the need for friends can refer to

Inheritance means that child nodes use the parent node's style properties by default.

There are too many non-inheritable properties to memorize, so remember which attributes you can inherit. There are few properties that can inherit, only color, text, font spacing, line height alignment, and the style of the list can be inherited. It's so easy to remember! Do not be frightened by the bottom of the OH ~

 All elements can be inherited: visibility and cursor. Inline elements can be inherited: Letter-spacing, Word-spacing, White-space, line-height, color, font, font-family, Font-size, Font-style, Font-variant, Font-weight, Text-decoration, Text-transform, direction. Terminal block elements can be inherited: Text-indent and Text-align. List elements can be inherited: List-style, List-style-type, List-style-position, List-style-image. 

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.