css-可继承和不可继承的属性

1.css哪些属性能够继承?哪些不可继承?

css属性分类css

字体属性:web

font-family,font-size,font-style,font-variant,font-weight,font可继承svg

ps: font-size继承的是计算后的实际值布局

文本属性:字体

word-spacing letter-spacing text-align text-transform text-indent line-height能够继承spa

text-decoration vertical-align不可继承orm

颜色背景属性:xml

color能够继承继承

background(background-color background-image background-repeat background-attachment background-position)不可继承ci

边框属性:

border(border-top border-right border-bottom border-left)(border-width border-style border-color)不能够继承

定位和布局属性:

margin padding width height float clear position left top overflow z-index display不能够继承

列表属性:

list-style-image, list-style-position,list-style-type, list-style能够继承