::-moz-list-number
非标准: 该特性是非标准的,请尽量不要在生产环境中使用它!
::-moz-list-number
CSS 伪元素是用于表示有序列表(<ol>
)中列表项(<li>
)的标记(通常是数字)的 Mozilla 扩展。
语法
css
li::-moz-list-number {
/* ... */
}
示例
HTML
html
<ol>
<li>第一项</li>
<li>第二项</li>
<li>第三项</li>
</ol>
CSS
css
li::-moz-list-number {
font-style: italic;
font-weight: bold;
}
结果
规范
不属于任何规范。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
::-moz-list-number |
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.