CSS属性书写顺序

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;

     

 





posted @ 2015-05-05 14:13  专注前端开发3-5年  阅读(137)  评论(0编辑  收藏  举报