Thuộc tính tối đa của HTML <progress>
Thí dụ
Hiển thị thanh tiến trình:
<label for="file">Downloading progress:</label>
<progress id="file"
value="32" max="100"> 32% </progress>
Định nghĩa và Cách sử dụng
Thuộc max
tính chỉ định tổng số công việc mà nhiệm vụ yêu cầu.
Hỗ trợ trình duyệt
Các số trong bảng chỉ định phiên bản trình duyệt đầu tiên hỗ trợ đầy đủ thuộc tính.
Attribute | |||||
---|---|---|---|---|---|
max | 8.0 | 10.0 | 16.0 | 6.0 | 11.0 |
Cú pháp
<progress max="number">
Giá trị thuộc tính
Value | Description |
---|---|
number | A floating point number that specifies how much work the task requires in total before it can be considered complete. Default value is 1. |
❮ Thẻ HTML <progress>