Input 新增属性
email 邮箱(只在手机端有效)
url 网址(只在iphone手机有效)
tel 手机号(只在手机端有效)
number 数字(右侧有上下按钮,只能输入数字,+号,-号,. 和e)
input 日期时间(手机端效果比较好)
date 年月日
time 小时和分
datetime 年月日+小时和分 (iphone和安卓都不再兼容,电脑端也不兼容)
datetime-local 本地年月日+小时和分
month 年月
week 年和周 (iphone不兼容)
<input type="date"><br>
<input type="time"><br>
<input type="datetime"><br>
<input type="datetime-local"><br>
<input type="month"><br>
<input type="week"><br>
seach 与 text 区别:
search右边有个叉叉
专门建立的学习Q-q-u-n: 784783012 ,分享学习的方法和需要注意的小细节,不停更新最新的教程和学习技巧
(从零基础开始到WEB前端项目实战教程,学习工具,全栈开发学习路线以及规划)
<input type="range" min="10" max="100"><br>
<input type="search"><br>
<input type="color"><br>
form 和 input的自动完成功能