在火狐等浏览器中 input[type=“number”]会出现step步进显示元素,css设置解决方法如下 input[type='number']{ -moz-appearance textfield }