HTML <ol> type 属性
下面有更多实例。
定义和用法
type 属性规定列表中要使用的标记类型(字母或数字)。
提示: CSS list-style-type 属性提供的类型多于类型属性(请参见下面的示例)。
浏览器支持
属性 | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
语法
<ol type="1|a|A|i|I">
属性值
值 | 描述 |
---|---|
1 | 默认。十进制数字 (1, 2, 3, 4)。 |
a | 字母顺序的有序列表,小写 (a, b, c, d)。 |
A | 字母顺序的有序列表,大写 (A, B, C, D)。 |
i | 罗马数字,小写 (i, ii, iii, iv) |
I | 罗马数字,大写 (I, II, III, IV) |
更多实例
实例
显示 CSS 可用的所有不同列表类型:
<style>
ol.a {list-style-type: armenian;}
ol.b {list-style-type: cjk-ideographic;}
ol.c {list-style-type: decimal;}
ol.d {list-style-type:
decimal-leading-zero;}
ol.e {list-style-type: georgian;}
ol.f
{list-style-type: hebrew;}
ol.g {list-style-type: hiragana;}
ol.h
{list-style-type: hiragana-iroha;}
ol.i {list-style-type: katakana;}
ol.j {list-style-type: katakana-iroha;}
ol.k {list-style-type:
lower-alpha;}
ol.l {list-style-type: lower-greek;}
ol.m
{list-style-type: lower-latin;}
ol.n {list-style-type: lower-roman;}
ol.o {list-style-type: upper-alpha;}
ol.p {list-style-type: upper-latin;}
ol.q {list-style-type: upper-roman;}
ol.r {list-style-type: none;}
ol.s {list-style-type: inherit;}
</style>
亲自试一试 »
❮ HTML <ol> 标签