Home >Web Front-end >CSS Tutorial >What are the css inheritance styles?

What are the css inheritance styles?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-07-14 10:03:485430browse

css inherited styles include: visibility, cursor, letter-spacing, color, font, text-indent, text-align, list-style, list-style-type, border-collapse, etc.

What are the css inheritance styles?

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

Non-inheritable: display, margin, border, padding, background, height, min-height, max-height, width, min-width, max-width, overflow, position, left, right , top, bottom, z-index, float, clear, table-layout, vertical-align, page-break-after, page-bread-before and unicode-bidi

All elements can be inherited: visibility and cursor

Inline elements can inherit: 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

Block elements can inherit: text-indent and text-align

List elements can inherit: list-style, list-style-type, list-style-position, list-style-image

Table elements can inherit: border-collapse

Recommended learning: css video tutorial

The above is the detailed content of What are the css inheritance styles?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn