firefox(火狐中的兼容问题总结) 1.firefox 下 默认情况 <input type="number"> 只允许整数其他的都会报错,红色提示; 这时候可以添加参数 step="0.01" <input type="number" step="0.01">解决问题