该CSS属性用来设定列表项标记(list-item marker)的类型。
值:disc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none| inherit
可用值 | 值的说明 |
disc | 缺省值。黑圆点。 |
circle | 空心圆点。 |
square | 小黑方块。 |
decimal | 数字排序。1, 2, 3, 4 依次类推。 |
lower-roman | 小写罗马字排序。i, ii, iii, iv 依次类推。 |
upper-roman | 大写罗马字排序。 I, II, III, IV 依次类推。 |
lower-alpha | 小写字母排序。 a, b, c, d 依次类推。 |
upper-alpha | 大写字母排序。 A, B, C, D 依次类推。 |
none | 无列表项标记。 |
如果所在列表项的 margin-left 值设为 0 时,list-style-type 属性值无效,不显示效果。margin 值至少设为 30 pt。
.discul {list-style-type: disc}
.circleul {list-style-type: circle}
.squareul {list-style-type: square}
.noneul {list-style-type: none}
.decimalol {list-style-type: decimal}
.lromanol {list-style-type: lower-roman}
是
所有符合 display:list-item 的元素。