書寫順序和浏覽器解析過程有關!浏覽器先對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