在chrome下:
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button{
-webkit-appearance: none !important;
margin: 0;
}```
Firefox下:
input[type="number"]{
-moz-appearance:textfield;
}
第二種方案:
將type="number"改為type="tel",同樣是數(shù)字鍵盤(pán),但是沒(méi)有箭頭。
原文鏈接:http://stackoverflow.com/questions/3790935/can-i-hide-the-html5-number-input-s-spin-box