html組合標籤

來源:互聯網
上載者:User

標籤:開始   內容   nbsp   多層   ima   ack   png   2-2   spl   

組合標籤實際上都叫列表標籤

    分為無序列表和有序列表

    <ol type="    ">  //有序

      <li>內容</li>

    </ol>

    <ul type = "  ">//無序

      <li>內容</li>

    </ul>

    <ol  style="list-style: none;"></ol> //在標籤<ol>內加這個屬性,顯示效果為去除序號

  可以多層嵌套

  可以自訂一個列表

  自訂欄表不僅僅是一列項目,而是項目及其注釋的組合

  自訂欄表以 <dl> 標籤開始。每個自訂欄表項以 <dt> 開始。每個自訂欄表項的定義以 <dd> 開始

 

<ol>    <li>中國</li>            <li>俄羅斯        <ol type="a">            <li>莫斯科</li>                <ol>                    <li>123</li>                </ol>        </ol>    </li>            <li>美國            </li></ol>
多層嵌套

把要添加的內容或者標題寫到<li></li>內

運行效果.

 1 <ol style="list-style: none;"> 2     <li>中國</li>         3     <li>俄羅斯 4         <ol type="a" style="list-style: none;"> 5             <li>莫斯科 6                 <ol style="list-style: none;"> 7                     <li>123</li> 8                 </ol> 9             </li>10         </ol>11     </li>12         13     <li>美國14         15     </li>16 </ol>
去除標籤序號

顯示效果

  

 1 <dl> 2 <dt>Coffee</dt> 3 <dd>- black hot drink</dd> 4 <dd>-123 5     <dl> 6         <dd>-456</dd> 7     </dl> 8 </dd> 9 <dt>Milk</dt>10 <dd>- white cold drink</dd>11 </dl>
自訂欄表

顯示效果

 

html組合標籤

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.