会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zhangxin's Blog
In me the tiger sniffs the rose.
博客园
首页
新随笔
联系
订阅
管理
2020年3月4日
PC端input maxlength 失效问题
摘要: 当input的type设置为number的时候,max-length失效 此时max和min是number所支持的 ,也就是最大值和最小值 所以我们可以通过设置 <input type="number" type="number" max="999" /> 来控制我们最多只能输入三位数的数字; 网上
阅读全文
posted @ 2020-03-04 21:28 张馨
阅读(701)
评论(0)
推荐(0)
编辑
公告