HTML DOM 측정기 개체
미터 개체
Meter 개체는 HTML <meter> 요소를 나타냅니다.
참고: <meter> 요소는 Internet Explorer/Edge 또는 Safari 5(및 이전 버전)에서 지원되지 않습니다.
미터 개체에 액세스
getElementById()를 사용하여 <meter> 요소에 액세스할 수 있습니다.
예시
var x = document.getElementById("myMeter");
미터 개체 만들기
document.createElement() 메서드를 사용하여 <meter> 요소를 만들 수 있습니다.
예시
var x = document.createElement("METER");
미터 개체 속성
Property | Description |
---|---|
high | Sets or returns the value of the high attribute in a gauge |
labels | Returns a list of <label> elements that are labels for the gauge |
low | Sets or returns the value of the low attribute in a gauge |
max | Sets or returns the value of the max attribute in a gauge |
min | Sets or returns the value of the min attribute in a gauge |
optimum | Sets or returns the value of the optimum attribute in a gauge |
value | Sets or returns the value of the value attribute in a gauge |
표준 속성 및 이벤트
Meter 개체는 표준 속성 과 이벤트 도 지원합니다 .
관련 페이지
HTML 참조: HTML <meter> 태그