小白教程
所有教程
关于
Search
172.70.127.160
172.70.127.160
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Pr list style type”的源代码
本页内容
上一节:
Pr_list_style_position
下一节:
Pr_margin
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:list-style-type}}[[Category:css reference|143]] = CSS list-style-type 属性 = 设置一些不同的列表样式: <sample title="" desc="" lang="html" hererun="1"> 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} </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> ul.a {list-style-type:circle;} ul.b {list-style-type:square;} ol.c {list-style-type:upper-roman;} ol.d {list-style-type:lower-alpha;} </style> </head> <body> <p>无序列表实例:</p> <ul class="a"> <li>Coffee</li> <li>Tea</li> <li>Coca Cola</li> </ul> <ul class="b"> <li>Coffee</li> <li>Tea</li> <li>Coca Cola</li> </ul> <p>有序列表实例:</p> <ol class="c"> <li>Coffee</li> <li>Tea</li> <li>Coca Cola</li> </ol> <ol class="d"> <li>Coffee</li> <li>Tea</li> <li>Coca Cola</li> </ol> </body> </html> </run> 在此页底部有更多的例子。 == 属性定义及使用说明 == list-style-type 属性设置列表项标记的类型。 {| class="table table-striped table-hover" | 默认值: | "disc" for <ul> and "decimal" for <ol> |- | 继承: | yes |- | 版本: | CSS1 |- | JavaScript 语法: | object.style.listStyleType="square" |} == 浏览器支持 == 表格中的数字表示支持该属性的第一个浏览器版本号。 {| class="table table-striped table-hover" ! 属性 ! Chrome ! Internet Explorer / Edge ! Firefox ! Safari ! Opera |- | list-style-type | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |} == 属性值 == {| class="table table-striped table-hover" ! 值 ! 描述 |- | none | 无标记。 |- | disc | 默认。标记是实心圆。 |- | circle | 标记是空心圆。 |- | square | 标记是实心方块。 |- | decimal | 标记是数字。 |- | decimal-leading-zero | 0开头的数字标记。(01, 02, 03, 等。) |- | lower-roman | 小写罗马数字(i, ii, iii, iv, v, 等。) |- | upper-roman | 大写罗马数字(I, II, III, IV, V, 等。) |- | lower-alpha | 小写英文字母The marker is lower-alpha (a, b, c, d, e, 等。) |- | upper-alpha | 大写英文字母The marker is upper-alpha (A, B, C, D, E, 等。) |- | lower-greek | 小写希腊字母(alpha, beta, gamma, 等。) |- | lower-latin | 小写拉丁字母(a, b, c, d, e, 等。) |- | upper-latin | 大写拉丁字母(A, B, C, D, E, 等。) |- | hebrew | 传统的希伯来编号方式 |- | armenian | 传统的亚美尼亚编号方式 |- | georgian | 传统的乔治亚编号方式(an, ban, gan, 等。) |- | cjk-ideographic | 简单的表意数字 |- | hiragana | 标记是:a, i, u, e, o, ka, ki, 等。(日文平假名字符) |- | katakana | 标记是:A, I, U, E, O, KA, KI, 等。(日文片假名字符) |- | hiragana-iroha | 标记是:i, ro, ha, ni, ho, he, to, 等。(日文平假名序号) |- | katakana-iroha | 标记是:I, RO, HA, NI, HO, HE, TO, 等。(日文片假名序号) |} == 更多实例 == [[try.php?filename=trycss_list style type_all|所有不同的列表项标记列表]] 这个例子演示了所有不同的列表项标记。 == 相关文章 == CSS 教程: [[css_list.asp|CSS 列表]] CSS 参考手册: [[pr_list style.asp|list-style 属性]]
返回至“
Pr list style type
”。
上一节:
Pr_list_style_position
下一节:
Pr_margin