::-moz-list-bullet
非标准: 该特性是非标准的,请尽量不要在生产环境中使用它!
::-moz-list-bullet
CSS 伪元素是用于表示无序列表(<ul>
)中的列表项(<li>
)的标记(通常是项目符号)的 Mozilla 扩展。
语法
css
li::-moz-list-bullet {
/* ... */
}
示例
列表项标记的样式
HTML
html
<ul>
<li>项 1</li>
<li>项 2</li>
<li>项 3</li>
</ul>
CSS
css
::-moz-list-bullet {
color: red;
font-size: 1.5em;
}
结果
规范
不属于任何规范。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
::-moz-list-bullet |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- Non-standard. Check cross-browser support before using.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.