码迷,mamicode.com
首页 > Web开发 > 详细

css inherit

时间:2017-04-22 10:42:20      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:page   idt   pac   ati   max   line   列表   推出   ott   

结论:大多数属性都不可继承(基本上适用于当前元素的设定  根据常识可以推出)
可继承的,多数涉及到全局单位,如字体,光标,列表的子属性,文本的属性。

不可继承的: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。 所有元素可继承: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

css inherit

标签:page   idt   pac   ati   max   line   列表   推出   ott   

原文地址:http://www.cnblogs.com/ZackBee/p/6746962.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!