css继承
css的继承性
css继承指包在内部的标签拥有外部标签的样式性质。继承特性最典型的应用通常发生在整个网页的样式预设,需要指定特定样式的部分设定在个别元素里即可。
不可继承的:display、margin、border、padding、background、height、width、overflow、position、z-index、float、clear、table-layout、vertical-align、page-break-after、page-bread-before和unicode-bidi。
所有元素可继承:visibility和cursor。
内联元素可继承: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。字体、文本。
终端块状元素可继承:text-indent和text-align。
列表元素可继承:list-style、list-style-type、list-style-position、list-style-image。
表格元素可继承:border-collapse。
浙公网安备 33010602011771号