📅  最后修改于: 2020-11-04 00:49:03             🧑  作者: Mango
HTML
它应该用于显示磁盘使用情况,投票人数等。
HTML meter标签是HTML5中的新增功能,因此您必须使用新的浏览器。
HTML
Attributes | Description |
---|---|
value | It is a mandatory attribute which is used to specify a value in numbers. The number may be integer or floating point number. |
form | It specifies one or more forms to which meter element belongs to. |
high | It specifies a range that is considered as high value. |
low | It specifies a range that is considered as low value. |
max | It specifies the maximum value defined in the range. |
min | It specifies the minimum value defined in the range. |
optimum | It specifies the optimum value for the gauge.It is an optional attribute. |
让我们看一下带有min,max和value属性的进度示例。
Display a gauge:
30 out of 100
80%
输出:
显示量规:
您可以在电表标签上应用CSS代码。
meter{
width: 300px;
height: 30px;
}
输出:
Element | Chrome | IE | Firefox | Opera | Safari |
Yes | Yes | Yes | Yes | Yes |