Đối tượng đo HTML DOM
Đối tượng đo
Đối tượng Meter đại diện cho phần tử HTML <meter>.
Lưu ý: Phần tử <meter> không được hỗ trợ trong Internet Explorer / Edge hoặc Safari 5 (và các phiên bản cũ hơn).
Truy cập đối tượng Meter
Bạn có thể truy cập phần tử <meter> bằng cách sử dụng getElementById():
Tạo một đối tượng đo
Bạn có thể tạo phần tử <meter> bằng cách sử dụng phương thức document.createElement():
Thuộc tính đối tượng đo
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 |
Thuộc tính và sự kiện tiêu chuẩn
Đối tượng Meter cũng hỗ trợ các thuộc tính và sự kiện tiêu chuẩn.
Trang liên quan
Tham chiếu HTML: thẻ HTML <meter>