一、列表元素
!DOCTYPE html html lang= en head meta charset= UTF-8 title Title /title !-- list-style: none;可以清除有序列表或無序列表前面的數字或者符號-- style type= text/css ul { list-style: none; /style /head body ul type= circle !--空心圓無序列表-- li first /li li second /li li third /li /ul ul type= disc !--disc是默認值,實心圓無序列表-- li first /li li second /li li third /li /ul ul type= square !--實心方框,無序列表-- li first /li li second /li li third /li /ul ol type= A !--以字母A開始的有序列表-- li first /li li second /li li third /li /ol ol type= a !--以字母a開始的有序列表-- li first /li li second /li li third /li /ol ol type= i !--以小寫羅馬數字開始的有序列表-- li first /li li second /li li third /li /ol ol type= I start= 2 !--以大寫羅馬數字開始的有序列表,start規定了列表開始的值-- li first /li li second /li li third /li /ol ol type= I !--以大寫羅馬數字開始的有序列表,value規定了第三個從Ⅳ開始,規定了第六個從Ⅷ開始-- li first /li li second /li li value= 4 third /li li fouth /li li friday /li li value= 8 六 /li li 七 /li /ol dl !--dl自定義列表,dt列表中的項目,d項目描述,自動換行并有縮進-- dt 一 /dt dd hello world /dd dd welcome to html5 /dd dt 二 /dt dd kan kan xiaoguo /dd /dl /body /html
二、效果展示

相關推薦:
了解HTML表單之input元素的30個元素屬性_html/css_WEB-ITnose
HTML列表元素
以上就是html各個列表元素的應用(一個例子)的詳細內容,html教程
鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。
新聞熱點
疑難解答