Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

HTMLMeterElement

我們的志工尚未將此文章翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!

The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements.

Properties

Inherits properties from its parent, HTMLElement.

Name Type Description
high double It returns the value of the high boundary, reflecting the high <meter> attribute.
low double It returns the value of the low boundary, reflecting the low <meter> attribute.
max double It return the maximum value, reflecting the max <meter> attribute.
min double It returns the minimum value, reflecting the min <meter> attribute.
optimum double It returns the optimum value, reflecting the optimum <meter> attribute.
labels NodeList A list of <label> elements that are labels for this element.

Methods

No specific method; inherits methods from its parent, HTMLElement.

Specifications

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'HTMLMeterElement' in that specification.
Living Standard No change from HTML5.
HTML5.1
The definition of 'HTMLMeterElement' in that specification.
Working Draft  
HTML5
The definition of 'HTMLMeterElement' in that specification.
Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 6.0 16 (16) 10.0 11.0 5.2
labels ? Not supported ? ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 16.0 (16) ? 11.0 ?
labels ? Not supported ? ? ?

See also

  • The HTML element implementing this interface: <meter>

文件標籤與貢獻者

 此頁面的貢獻者: cecchi, fscholz, Nexii, teoli, kscarfone, Sheppy, Jeremie
 最近更新: cecchi,