::-moz-progress-bar

Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Phần tử giả CSS ::-moz-progress-bar là một phần mở rộng của Mozilla đại diện cho thanh tiến trình bên trong phần tử <progress>. (Thanh này đại diện cho lượng tiến trình đã hoàn thành.)

Nếu bạn muốn chọn phần chưa hoàn thành của <progress> trong Mozilla, hãy chọn trực tiếp phần tử <progress>.

Cú pháp

css
::-moz-progress-bar {
  /* ... */
}

Ví dụ

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;
}

Kết quả

Đặc tả

Không thuộc bất kỳ tiêu chuẩn nào.

Tương thích trình duyệt

Xem thêm