|
<OL>稱為順序清單標(biāo)記。<LI>則用以標(biāo)示清單項目。 所謂順序清單就是在每一項前面加上 1,2,3... 等數(shù)目,又稱編號清單。
<OL> 的參數(shù)設(shè)定(常用): 例如: <ol type="i" start="4"></ol>
-
type="i" 設(shè)定數(shù)目款式,其值有五種,請參考 右表,內(nèi)定為 type="1"。
-
start="4" 設(shè)定開始數(shù)目,不論設(shè)定了哪一數(shù) 目款式,其值只能是 1,2,3.. 等整 數(shù),內(nèi)定為 start="1"。 |
| Type |
Numbering style |
| 1 |
arabic numbers |
1, 2, 3, ... |
| a |
lower alpha |
a, b, c, ... |
| A |
upper alpha |
A, B, C, ... |
| i |
lower roman |
i, ii, iii, ... |
| I |
upper roman |
I, II, III, ... | |
<LI> 的參數(shù)設(shè)定(常用): 例如: <li type="square" value="4">
-
type="square" 只適用于非順序清單,設(shè)定符號款式,其值有三種,如下,內(nèi)定為 type="disc": 符號 是當(dāng) type="disc" 時的列項符號。 符號 if" width=10 height=10 border=0> 是當(dāng) type="circle" 時的列項符號。 符號 是當(dāng) type="square" 時的列項符號。
-
value="4" 只適用于順序清單,設(shè)定該一項的數(shù)目,其後各項將以此作為起始數(shù)目而遞增, 但前面各項則不受影響,其值只能是 1,2,3.. 等整數(shù),沒有內(nèi)定值。
例子:
| HTML Source Code (原始碼) |
瀏覽器顯示結(jié)果 |
|
My best friends: <ol> <li>Michelle Wei <li>Michael Wan <li>Gloria Lam </ol> |
My best friends:
-
Michelle Wei
-
Michael Wan
-
Gloria Lam | |