css縮寫

字號(hào):


    比如:邊框的屬性如下
    border-width:1px;
    border-style:solid;
    border-color:#000;
    可以縮寫為一句:border:1px solid #000;
    背景的屬性如下:
    background-color:#f00;
    background-image:url(background.gif);
    background-repeat:no-repeat;
    background-attachment:fixed;
    background-position:0 0;
    可以縮寫為一句:background:#f00 url(background.gif) no-repeat fixed 0 0;
    字體的屬性如下:
    font-style:italic;
    font-variant:small-caps;
    font-weight:bold;
    font-size:1em;
    line-height:140%;
    font-family:"Lucida Grande",sans-serif;
    可以縮寫為一句:font:italic small-caps bold 1em/140% "Lucida Grande",sans-serif;
    注意,如果你縮寫字體定義,至少要定義font-size和font-family兩個(gè)值。