義烏網(wǎng)站制作網(wǎng)頁(yè)HTML默認(rèn)的CSS樣式表屬性

2012-01-01 瀏覽:150
義烏網(wǎng)站制作網(wǎng)頁(yè)HTML默認(rèn)的CSS樣式表屬性:

這個(gè)東西,在你需要還原默認(rèn)值的時(shí)候,比較有用。

開(kāi)始的時(shí)候 *{margin:0;padding:0;},當(dāng)需要使用邊距的時(shí)候,就需要還原HTML默認(rèn)CSS值了。

以前一直在找這份文檔,今天偶然在w3上看到了。除了inline和block的定義,主要是要注意body|h1~h6|blockquote|menu|ul|ol|dd等標(biāo)簽的默認(rèn)樣式(margin和font-size)。

      <rt id="jhw6y"><small id="jhw6y"><legend id="jhw6y"></legend></small></rt>
      <rt id="jhw6y"></rt>

      <rt id="jhw6y"><small id="jhw6y"></small></rt>
      <label id="jhw6y"><big id="jhw6y"><strong id="jhw6y"></strong></big></label>
        以下是引用片段:
        html, address,
        blockquote,
        body, dd, div,
        dl, dt, fieldset, form,
        frame, frameset,
        h1, h2, h3, h4,
        h5, h6, noframes,
        ol, p, ul, center,
        dir, hr, menu, pre   { display: block }
        li              { display: list-item }
        head            { display: none }
        table           { display: table }
        tr              { display: table-row }
        thead           { display: table-header-group }
        tbody           { display: table-row-group }
        tfoot           { display: table-footer-group }
        col             { display: table-column } 
        colgroup        { display: table-column-group }
        td, th          { display: table-cell; }
        caption         { display: table-caption }
        th              { font-weight: bolder; text-align: center }
        caption         { text-align: center }
        body            { margin: 8px; line-height: 1.12 }
        h1              { font-size: 2em; margin: .67em 0 }
        h2              { font-size: 1.5em; margin: .75em 0 }
        h3              { font-size: 1.17em; margin: .83em 0 }
        h4, p,
        blockquote, ul,
        fieldset, form,
        ol, dl, dir,
        menu            { margin: 1.12em 0 } 

        h5              { font-size: .83em; margin: 1.5em 0 }
        h6              { font-size: .75em; margin: 1.67em 0 }
        h1, h2, h3, h4,
        h5, h6, b,
        strong          { font-weight: bolder }
        blockquote    &nb

        上一條: 義烏做網(wǎng)站ajax應(yīng)該如何應(yīng)用?
        下一條: 義烏做網(wǎng)站ajaxSubmit插件jQuery1.4.2版JSON問(wèn)題

        新聞資訊

        相關(guān)資訊