::-moz-progress-bar
非标准:此特性未标准化。我们不建议在生产环境中使用非标准特性,因为它们浏览器支持有限,并且可能会更改或被移除。但是,在没有标准选项的特定情况下,它们可以是合适的替代方案。
::-moz-progress-bar CSS 伪元素是一个 Mozilla 扩展,它表示 <progress> 元素内的进度条。(此进度条表示已完成的进度量。)
如果您想在 Mozilla 中选择 <progress> 中未完成的部分,请直接选择 <progress>。
语法
css
::-moz-progress-bar {
/* ... */
}
示例
HTML
html
<progress value="30" max="100">30%</progress>
<progress max="100">Indeterminate</progress>
CSS
css
::-moz-progress-bar {
background-color: red;
}
/* Force indeterminate bars to have zero width */
:indeterminate::-moz-progress-bar {
width: 0;
}
结果
规范
不属于任何标准。
浏览器兼容性
加载中…