CSS属性书写顺序

建议遵循以下顺序: 1、布局定位属性:display / position / float /clear / visibility / overflow(建议display第一个写,毕竟关系到模式) 2、自身属性(盒模型):width / height / margin / padding / border / background 3、文本属性:color / font / text-decor
相关文章
相关标签/搜索