<form action="">
<input type="date">//显示年月日<!--chrome支持,Safari,IE不支持-->
<input type="time">//显示早中晚+几点<!--chrome支持,Safari,IE不支持-->
<input type="week">//显示年+第几周<!--chrome支持,Safari,IE不支持-->
<input type="datetime-local">//显示年月日,早中晚+几点<!--显示时间和日期,chrome支持,Safari,IE不支持-->
<input type="number">//<!--chrome支持,Safari,IE不支持-->
<input type="email">//<!--chrome,火狐支持,Safari,IE不支持-->
<input type="color">//<!--chrome支持,Safari,IE不支持-->
<input type="range" min="1" max="100">//<!--chrome,Safari支持,火狐IE不支持-->
<input type="search">//<!--chrome支持,Safari支持一点,IE不支持-->
<input type="url">//<!--chrome,火狐支持,Safari,IE不支持-->
<input type="submit">
</form>
2、
原文:https://www.cnblogs.com/pengppp/p/11963575.html