属性编写顺序
推荐的样式编写顺序
1、显示属性
1display/list-style/position/float/clear2、自身属性(盒模型)
1width/height/margin/padding/border3、背景
1background4、行高
1line-height5、文本属性
1 2 | color/font/text-decoration/text-align/ text-indent/vertical-align/white-space/content |
6、其他
1cursor/z-index/zoom7、CSS3属性
1transform/transition/animation/box-shadow/border-radius8、链接的样式请严格按照如下顺序添加:
1a:link -> a:visited -> a:hover -> a:active(LoVeHAte)