Home >Web Front-end >CSS Tutorial >What are the css inheritance styles?
css inherited styles include: visibility, cursor, letter-spacing, color, font, text-indent, text-align, list-style, list-style-type, border-collapse, etc.
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!