码迷,mamicode.com
首页 > Web开发 > 详细

CSS属性书写顺序

时间:2015-05-05 16:15:39      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:

CSS属性书写顺序,建议遵循

Positioning(定位) -> Box model(盒模型) -> typographic (排版)->visual(视觉) ->other

  1. /* Positioning */
    position: absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    z-index:100;
    /* Box-model */
    display: block;
    float: right;
    width:100px;
    height:100px;
    /* Typography */
    font: normal 13px"Helvetica Neue", sans-serif;
    line-height:1.5;
    color:#333;
    text-align: center;
    /* Visual */
    background-color:#f5f5f5;
    border:1px solid #e5e5e5;
    border-radius:3px;
    /* Misc */
    opacity:1;

     

 





CSS属性书写顺序

标签:

原文地址:http://www.cnblogs.com/cnchenjunbiao/p/4479000.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!