LOADING

【记录】CSS属性书写顺序和规范

书写CSS遵循以下顺序

1.布局定位属性:

display / position / foat / clear / visibility / overflow

(建议 display 第一个写,遵循关系到模式的写法)

2.自身属性:

width / height / margin / padding / border / background

3.文本属性:

color / font /text-decoration / text-align / vertcal-align / white-space / break-word

4.其他属性(css3):

content / cursor / border-radius /box-shadow /text-shadow / background:linear_gradient 等

    发表回复

    电子邮件地址不会被公开。必填项已用 * 标注