CSS继承元素属性_html/css_WEB-ITnose

原创
2016-06-24 11:33:56 1054浏览

CSS继承的元素属性

所有元素可继承:

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

不可继承的:

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和unicode-bidi

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。