css 样式的书写顺序

1.位置属性:position,top,right,z-index,display,float,.etc;
2.大小:width,height,padding,margin;
3.文字属性:font,line-height,letter-spacing,color,text-align,.etc;
4.背景:background,border,.etc;
5.其他:animation,transition,.etc.

你可能感兴趣的:(css 样式的书写顺序)