Latest web development tutorials

HTML DOM Meter obiektów

Miernik obiektu

Licznik obiekty są nowe w HTML5.

Obiekt Licznik reprezentuje HTML <Licznik> element.

Obiekt Meter Dostępu

Można użyć getElementById (), aby uzyskać dostęp do elementu <Licznik>:

var x = document.getElementById("myMeter"); 尝试一下

Tworzenie obiektu Meter

Można użyć metody document.createElement (), aby utworzyć <Licznik> elementu:

var x = document.createElement("METER"); 尝试一下

Właściwości obiektu Meter

属性 描述
high 设置或返回度量中 high 属性的值。
labels 返回度量的 <label> 元素的列表。
low 设置或返回度量中 low 属性的值。
max 设置或返回度量中 max 属性的值。
min 设置或返回度量中 min 属性的值。
optimum 设置或返回度量中 optimum 属性的值。
value 设置或返回度量中 value 属性的值。

Właściwości standardowe i wydarzenia

Licznik obiektów obsługuje również standardowe atrybuty i wydarzenia .


Powiązane artykuły

Instrukcja HTML Reference: HTML <Licznik> tag