標準的css代碼順序寫法

書寫順序和瀏覽器解析過程有關!瀏覽器先對dom定位,然後解析自身屬性,然後再解析內部對象!
//顯示屬性
display
list-style
position
float
clear

//自身屬性
width
height
margin
padding
border
background

//文本屬性
color
font
text-decoration
text-align
vertical-align
white-space
other text
content

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章