好程序員前端教程css中可被繼承和不可被繼承的屬性
一.無繼承性的屬性
成都創新互聯公司是一家專注于成都網站建設、網站建設與策劃設計,旌德網站建設哪家好?成都創新互聯公司做網站,專注于網站建設10余年,網設計領域的專業建站公司;建站業務涵蓋:旌德等地區。旌德做網站價格咨詢:028-86922220
1.display:規定元素應該生成的框的類型
2.文本屬性:vertical-align:垂直文本對齊
text-decoration:規定添加到文本的裝飾
text-shadow:文本陰影效果
white-space:空白符的處理
unicode-bidi:設置文本的方向
3.盒子模型的屬性:width,height,margin,margin-top,margin-right,margin-bottom,margin-left,border,border-style,border-top(right,bottom,left)-style
border-top(right,bottom,left)-width,border-top(right,bottom,left)-color,border-top,border-right,border-bottom,border-left,
padding,padding-top,padding-right,padding-bottom,padding-left
4.背景屬性:background,background-color,background-image,background-repeat,background-position,background-attachment
5.定位屬性:float,clear,position,top,right,bottom,left,min-width,min-height,max-width,max-height,overflow,clip,z-index
6.生成內容屬性:content,content-seset,content-increment
7.輪廓樣式屬性:outline,outline-style,outline-width,outline-color
8.頁面樣式屬性:size,page-break-before,page-break-after
9.聲音樣式屬性:pause,pause-before,pause-after,cue,cue-before,cue-after,play-during
二.有繼承性的屬性
1.字體系列屬性:font:組合字體
font-family:規定元素的字體系列
font-weight:設置字體的粗細
font-size:設置字體的尺寸
font-style:設置字體的風格
font-variant:設置小型大寫字母的字體顯示文本,這意味著所有的小寫字母均會被轉換為大寫,但是所有使用小型大寫字體的字母與其余文本相比,其字體尺寸更小
font-stretch:對當前的font-family進行伸縮變形,所有主流瀏覽器都不支持
font-size-adjust:為某個元素規定一個aspect值,這樣就可以保持首選字體的x-height
2.文本系列屬性:text-indent:文本縮進
text-align:文本水平對齊
line-height:行高
word-spacing:增加或減少文單詞間的空白(即字間隔)
letter-spacing:增加或減少字符間的空白(字符間距)
text-transform:控制文本大小寫
direction:規定文本的書寫方向
color:文本顏色
3.元素可見性:visibility
4.表格布局屬性:caption-side,border-collapse,border-spacing,empty-cells,table-layout
5.列表布局屬性:list-style,list-style-image,list-style-type,list-style-position
6.生產內容屬性:quotes
7.光標屬性:cursor
8.頁面樣式屬性:page,page-break-inside,Windows,orphans
9.聲音樣式屬性:speak、speak-punctuation、speak-numeral、speak-header、speech-rate、volume、voice-family、pitch、pitch-range、stress、richness、、azimuth、elevation
三.所有元素可繼承屬性
1.元素可見性:visibility
2.光標屬性:cursor
四.內聯元素可以繼承的屬性
1.字體系列屬性
2.除text-indent,text-align之外的文本系列屬性
五.塊級元素可以繼承的屬性
1.text-indent,text-align
當前題目:好程序員前端教程css中可被繼承和不可被繼承的屬性
瀏覽地址:http://vcdvsql.cn/article30/gjegso.html
成都網站建設公司_創新互聯,為您提供全網營銷推廣、軟件開發、網站建設、自適應網站、App設計、靜態網站
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯