首页 > Web开发 > 详细

CSS属性书写顺序

时间:2015-05-05 16:14:56      阅读:282      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!