CSS list-style-type 属性
实例
设置一些不同的列表样式:
ul.circle {list-style-type:circle}
ul.square {list-style-type:square}
ol.upper-roman {list-style-type:upper-roman}
ol.lower-alpha {list-style-type:lower-alpha}
ul.square {list-style-type:square}
ol.upper-roman {list-style-type:upper-roman}
ol.lower-alpha {list-style-type:lower-alpha}
运行实例
在此页底部有更多的例子。
属性定义及使用说明
list-style-type 属性设置列表项标记的类型。
默认值: | "disc" for <ul> and "decimal" for <ol> |
---|---|
继承: | yes |
版本: | CSS1 |
JavaScript 语法: | object.style.listStyleType="square" |
浏览器支持
表格中的数字表示支持该属性的第一个浏览器版本号。
属性 | |||||
---|---|---|---|---|---|
list-style-type | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |