Everyone knows about CSS and inheritance, but they really know what things are and will inherit them, and those will not "inherit the father". Now, let us know .[Xiao HeWe are very grateful to you for pointing out any errors.]
When designing CSS, manyAll attributes can be inherited..
1.Inherited attributes:
>>> Visibility and cursor can beAll element inheritance
>>> The following can only beInline element inheritance: Letter-spacing (In pseudo classes), word-spacing, white-space, line-height, color, [font family] font, font-familly, font-weight, font-size, font-style, font-variant, font-decoration, text-transform, Direction
>>> The following attributes areBlock-level element inheritance: Text-align and text-indent
>>> The following attributes areList element inheritance: List-style, list-style-type, list-style-position, list-style-Image
>>> The following attributes areTable element inheritance: Border-collapse
2.Attributes that cannot be inherited
>>> The following attributesCannot be inherited:
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, pager-break-before and Unicode-bidi [we have not seen a few of them here, not much to use.]