Meter optimum property
Definition and Usage
optimum
Property to set or return the value of the meter optimum property value.
The optimum property specifies the range of values considered to be the best value for the meter.
See also:
HTML Reference Manual:HTML <meter> optimum এট্রিবিউট
HTML Reference Manual:HTML <meter> ট্যাগ
Instance
Example 1
Return the value of the optimum property in the meter:
var x = document.getElementById("myMeter").optimum;
Example 2
Change the value of the optimum property in the meter:
document.getElementById("myMeter").optimum = "0.7";
Syntax
Return optimum property:
meterObject.optimum
set optimum property:
meterObject.optimum = number
属性值
值 | 描述 |
---|---|
number | 规定作为仪表的最佳值的浮点数。 |
技术细节
返回值: | 数值,表示仪表的最佳值的浮点数。 |
---|
浏览器支持
表中的数字注明了首个完全支持该属性的浏览器版本。
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
支持 | 不支持 | 支持 | 6.0 | 支持 |