CSS 中可以继承不可继承的属性

1.不可继承的: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(The page-break-after CSS property adjusts page breaks after the current element.)、page-break-before(The page-break-before CSS property adjusts page breaks before the current element.)和unicode-bidi(The unicode-bidi CSS property together with the direction property relates to the handling of bidirectional text in a document. )。
2.所有元素可继承:visibility和cursor。
3.内联元素可继承: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。
4.终端块状元素可继承:text-indent和text-align。
5.列表元素可继承:list-style、list-style-type、list-style-position、list-style-image。