::-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 GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
::-moz-list-bullet
ExperimentalNon-standard

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.

参见