定义一个输入时间的控件(无时区):
<label for="appt">Select a time:</label> <input type="time" id="appt" name="appt">
<input type="time">
定义了用于输入时间(无时区)的控件。
提示: 始终添加 <label>
标签以获得最佳可访问性实践!
表中的数字指定了完全支持该元素的第一个浏览器版本。
Attribute | |||||
---|---|---|---|---|---|
type="time" | 20.0 | 12.0 | 57.0 | 14.1 | 10.1 |
<input type="time">