在工作当中书写css样式是非常重要的,但是咋样书写css样式顺序更重要。
一、
定位属性:position display float left top right bottom overflow clear z-index
二、
自身属性:width height padding border margin background
三、
文字样式:font-family font-size font-style font-weight font-varient color
四、
文本属性:text-align vertical-align text-wrap text-transform text-indent text-decoration letter-spacing word-spacing white-space text-overflow
五、
css3中新增属性:content box-shadow border-radius transform……
按照上述1 2 3 4 5的顺序进行书写。
原文链接:https://blog.csdn.net/qq_36060786/article/details/79311244