HTML <postęp> max Atrybut
Przykład
Pokaż pasek postępu:
<label for="file">Downloading progress:</label>
<progress id="file"
value="32" max="100"> 32% </progress>
Definicja i użycie
Atrybut określa , max
ile pracy wymaga w sumie zadanie.
Obsługa przeglądarki
Liczby w tabeli określają pierwszą wersję przeglądarki, która w pełni obsługuje ten atrybut.
Attribute | |||||
---|---|---|---|---|---|
max | 8.0 | 10.0 | 16.0 | 6.0 | 11.0 |
Składnia
<progress max="number">
Wartości atrybutów
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. |
❮ Znacznik HTML <progress>