CSS 中可繼承與不可繼承屬性有哪些?
一、無(wú)繼承性的屬性
1.display:規(guī)定元素應(yīng)該生成的框的類(lèi)型
2.文本屬性:
????vertical-align:垂直文本對(duì)齊
????text-decoration:規(guī)定添加到文本的裝飾
????text-shadow:文本陰影效果
????white-space:空白符的處理
????unicode-bidi:設(shè)置文本的方向
盒子模型的屬性:width、height、margin、border、padding
背景屬性:background、background-color、background-image、background-repeat、background-position、background-attachment
定位屬性:float、clear、position、top、right、bottom、left、min-width、min-height、max-width、max-height、overflow、clip、z-index
生成內(nèi)容屬性:content、counter-reset、counter-increment
輪廓樣式屬性:outline-style、outline-width、outline-color、outline
頁(yè)面樣式屬性:size、page-break-before、page-break-after
聲音樣式屬性:pause-before、pause-after、pause、cue-before、cue-after、cue、play-during
二、有繼承性的屬性
1.字體系列屬性
????font-family:字體系列
????font-weight:字體的粗細(xì)
????font-size:字體的大小
????font-style:字體的風(fēng)格
2.文本系列屬性
????text-indent:文本縮進(jìn)
????text-align:文本水平對(duì)齊
????line-height:行高
????word-spacing:?jiǎn)卧~之間的間距
????letter-spacing:中文或者字母之間的間距
????text-transform:控制文本大小寫(xiě)(就是 uppercase、lowercase、capitalize 這三個(gè))
????color:文本顏色
元素可見(jiàn)性
????visibility:控制元素顯示隱藏
列表布局屬性
????list-style:列表風(fēng)格,包括 list-style-type、list-style-image 等
光標(biāo)屬性
????cursor:光標(biāo)顯示為何種形態(tài)