css书写顺序

  1. .css {
    // 显示属性
    display
    :
    position:
    float:
    clear
    ;
    cursor
    :

    // 盒模型

    height:
    margin:
    padding:

    // 文字
    color:
    font:
    content:
    text-align:
    text-decoration:
    white-space:
    vertical-align:

    // 边框和背景(容易修改)
    border:
    background:
    }
原文地址:https://www.cnblogs.com/ice_nemo/p/1967854.html