CSS中关于list-style属性的使用详解
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了CSS中关于list-style属性的使用详解,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1800字,纯文字阅读大概需要3分钟。
内容图文
![CSS中关于list-style属性的使用详解](/upload/InfoBanner/zyjiaocheng/414/c55c1c3bd37d43d19741c9a05ac09fc9.jpg)
取值:disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none | inherit
disc: 点
circle: 圆圈
square: 正方形
decimal: 数字
decimal-leading-zero: 十进制数,不足两位的补齐前导0,例如: 01, 02, 03, ..., 98, 99
lower-roman: 小写罗马文字,例如: i, ii, iii, iv, v, ...
upper-roman: 大写罗马文字,例如: I, II, III, IV, V, ...
lower-greek: 小写希腊字母,例如: α(alpha), β(beta), γ(gamma), ...
lower-latin: 小写拉丁文,例如: a, b, c, ... z
upper-latin: 大写拉丁文,例如: A, B, C, ... Z
armenian: 亚美尼亚数字
georgian: 乔治亚数字,例如: an, ban, gan, ..., he, tan, in, in-an, ...
lower-alpha: 小写拉丁文,例如: a, b, c, ... z
upper-alpha: 大写拉丁文,例如: A, B, C, ... Z
none: 无(取消所有的list样式)
inherit:继承
引用网址:http://www.dreamdu.com/css/property_list-style-type/
初始值: disc
继承性: 是
适用于: 所有属于list的元素
list,中文"列表"的意思.style,中文"样式"的意思.type,中文"类型"的意思.
示例
ul { list-style-type:disc; } ul#circle { list-style-type:circle; } ul#square { list-style-type:square; } ul#decimal { list-style-type:decimal; } ul#decimal-leading-zero { list-style-type:decimal-leading-zero; } ul#lower-roman { list-style-type:lower-roman; } ul#upper-roman { list-style-type:upper-roman; } ul#lower-greek { list-style-type:lower-greek; } ul#lower-latin { list-style-type:lower-latin; } ul#upper-latin { list-style-type:upper-latin; } ul#armenian { list-style-type:armenian; } ul#georgian { list-style-type:georgian; } ul#lower-alpha { list-style-type:lower-alpha; } ul#upper-alpha { list-style-type:upper-alpha; } ul#none { list-style-type:none; } ol { list-style-type:lower-roman; }
以上就是 CSS中关于list-style属性的使用详解的详细内容,更多请关注Gxl网其它相关文章!
内容总结
以上是互联网集市为您收集整理的CSS中关于list-style属性的使用详解全部内容,希望文章能够帮你解决CSS中关于list-style属性的使用详解所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。