HTML ?? ???
/ <meter>
<meter>
HTML <meter> 標(biāo)簽 實(shí)例 使用 meter 元素展示給定的數(shù)據(jù)范圍: <meter value='2' min='0' max='10'>2 out of 10</meter><br> <meter value='0..
HTML <meter> 標(biāo)簽
實(shí)例
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文網(wǎng)(php.cn)</title> </head> <body> <p>展示給定的數(shù)據(jù)范圍:</p> <meter value="2" min="0" max="10">2 out of 10</meter><br> <meter value="0.6">60%</meter> <p><strong>注意:</strong> IE 瀏覽器不支持 meter 標(biāo)簽。</p> </body> </html>
運(yùn)行實(shí)例 ?
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線(xiàn)實(shí)例
瀏覽器支持
Firefox、Opera、Chrome 和 Safari 6 支持 <meter> 標(biāo)簽。
標(biāo)簽定義及使用說(shuō)明
<meter> 標(biāo)簽定義度量衡。僅用于已知最大和最小值的度量。
比如:磁盤(pán)使用情況,查詢(xún)結(jié)果的相關(guān)性等。
注意: <meter> 不能作為一個(gè)進(jìn)度條來(lái)使用, 進(jìn)度條 <progress> 標(biāo)簽。
HTML 4.01 與 HTML5 之間的差異
<meter> 是 HTML5 的新標(biāo)簽。
屬性
New:HTML5 新屬性。
屬性 | 值 | 描述 |
---|---|---|
formNew | form_id | 規(guī)定 <meter> 元素所屬的一個(gè)或多個(gè)表單。 |
highNew | number | 規(guī)定被界定為高的值的范圍。 |
lowNew | number | 規(guī)定被界定為低的值的范圍。 |
maxNew | number | 規(guī)定范圍的最大值。 |
minNew | number | 規(guī)定范圍的最小值。 |
optimumNew | number | 規(guī)定度量的最優(yōu)值。 |
valueNew | number | 必需。規(guī)定度量的當(dāng)前值。 |
全局屬性
<meter> 標(biāo)簽支持全局屬性,查看完整屬性表 HTML全局屬性。
事件屬性
<meter> 標(biāo)簽支持所有 HTML事件屬性。