css样式书写顺序

(1)位置属性:position left top right bottom z-index display float overflow clear

(2)大小:width height padding margin

(3)文字样式:font-size font-family font-style font-weight font-varient color

(4)文本属性:text-align vertical-align text-wrap text-transform text-indent text-decoration letter-spacing word-spacing white-space text-overflow

(5)背景: background border

(6)css3中新增属性:content box-shadow border-radius animation transform……

相关推荐