<input type="password" pattern="\d*" pan >
让password出现数字键盘
<input type="number" style="-webkit-text-security:disc" />
把tel格式转换为密码格式
<input type="tel" style="-webkit-text-security:disc" placeholder="输入8位字符密码"/>
<input type="password" pattern="\d*" pan >
让password出现数字键盘
<input type="number" style="-webkit-text-security:disc" />
把tel格式转换为密码格式
<input type="tel" style="-webkit-text-security:disc" placeholder="输入8位字符密码"/>
转载于:https://www.cnblogs.com/lianxisheng/p/10149740.html