css选择器中的属性顺序

 

 

 

 

css选择器中的属性顺序:显示属性->自身属性->文本属性

  • 显示属性:display, list-style, position, float, clear
  • 自身属性:width, height, margin, padding,border,background
  • 文本属性:color, font, text-decoration, text-align,vertical-align, white-space, content

原    因:这个顺序是项目开发的代码标准,符合浏览器的渲染顺序,最终达到提高执行效率目的      


posted @ 2013-05-20 16:04  殇灬绝恋  阅读(141)  评论(0编辑  收藏  举报