显示日期和时间控件(无时区):
<label for="birthdaytime">Birthday (date and time):</label> <input type="datetime-local" id="birthdaytime" name="birthdaytime">
<input type="datetime-local">
定义了一个日期选择器。
结果值包括年、月、日和时间。
提示: 始终添加 <label>
标签以获得最佳可访问性实践!
表中的数字指定了完全支持该元素的第一个浏览器版本。
Attribute | |||||
---|---|---|---|---|---|
type="datetime-local" | 20.0 | 12.0 | 93.0 | 14.1 | 11.0 |
<input type="datetime-local">