小白教程
所有教程
关于
Search
172.70.127.104
172.70.127.104
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Pr list style image”的源代码
本页内容
上一节:
Pr_list_style
下一节:
Pr_list_style_position
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:list-style-image}}[[Category:css reference|141]] = CSS list-style-image 属性 = 指定列表中的列表项标记的图像: <sample title="" desc="" lang="html" hererun="1"> ul { list-style-image:url('sqpurple.gif'); } </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> ul { list-style-image:url('sqpurple.gif'); } </style> </head> <body> <ul> <li>Coffee</li> <li>Tea</li> <li>Coca Cola</li> </ul> </body> </html> </run> == 属性定义及使用说明 == list-style-image 属性使用图像来替换列表项的标记。 '''注意:''' 请始终规定一个 "list-style-type" 属性以防图像不可用。 {| class="table table-striped table-hover" | 默认值: | none |- | 继承: | yes |- | 版本: | CSS1 |- | JavaScript 语法: | object.style.listStyleImage="url('/images/blueball.gif')" |} == 浏览器支持 == 表格中的数字表示支持该属性的第一个浏览器版本号。 {| class="table table-striped table-hover" ! 属性 ! Chrome ! Internet Explorer / Edge ! Firefox ! Safari ! Opera |- | list-style-image | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |} == 属性值 == {| class="table table-striped table-hover" ! 值 ! 描述 |- | URL | 图像的路径。 |- | none | 默认。无图形被显示。 |- | inherit | 规定应该从父元素继承 list-style-image 属性的值。 |} == 相关文章 == CSS 教程: [[css list|CSS 列表]] CSS 参考手册: [[pr list style|list-style 属性]]
返回至“
Pr list style image
”。
上一节:
Pr_list_style
下一节:
Pr_list_style_position