HTML 5 <progress> 標(biāo)簽
定義和用法
<progress> 標(biāo)簽運(yùn)行中的進(jìn)程??梢允褂?<progress> 標(biāo)簽來顯示 JavaScript 中耗費(fèi)時間的函數(shù)的進(jìn)程。
HTML 4.01 與 HTML 5 之間的差異
<progress> 標(biāo)簽是 HTML 5 中的新標(biāo)簽。
提示和注釋
提示:請使用 <progress> 標(biāo)簽來顯示下載的進(jìn)程。
例子
對象的下載進(jìn)程:<progress>
<span id="objprogress">85</span>%</progress>
屬性
屬性 | 值 | 描述 |
---|---|---|
max | number | 定義完成的值。 |
value | number | 定義進(jìn)程的當(dāng)前值。 |
標(biāo)準(zhǔn)屬性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title
如需完整的描述,請訪問 HTML 5 中標(biāo)準(zhǔn)屬性。
事件屬性
onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload
如需完整的描述,請訪問 HTML 5 中事件屬性。