正在浏览:小数

input标签type为number时允许输入小数的方法如下: input type=number step=0.01 / 在input标签中添加step属性,step属性可以控制input的上下切换范围,在这里我们通过step来达到input标签type为number时