CSS 的三大特性
2017-07-18 14:47
260 查看
css的三大特性
1.继承性2.层叠性
3.优先级
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、page-bread-before和unicode-bidi。 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。 终端块状元素可继承:text-indent和text-align。 列表元素可继承:list-style、list-style-type、list-style-position、list-style-image。
总结尚不完善,后续更新中。。。
相关文章推荐
- CSS三大特性---层叠性,继承性,优先级
- css三大特性
- css三大特性
- CSS三大特性之优先级
- 0426-CSS三大特性之继承性
- CSS三大特性
- 0426-CSS三大特性之层叠性
- CSS三大特性
- css三大特性
- css的三大特性(继承,层叠,优先级)
- 0426-CSS三大特性之优先级
- css三大特性继承、层叠和优先级(权重)
- web前端——css的三大特性
- CSS三大特性—— 继承、 优先级和层叠。
- CSS 三大特性: 继承性、层叠性、优先级
- css 的三大特性 继承,层叠,优先级
- css三种样式及三大特性
- CSS的三大特性
- 选择器总结 浮动 CSS的三大特性
- CSS的三大特性(继承,层叠,优先级)