在chrome下:html
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button{
-webkit-appearance: none !important;
margin: 0;
}html5
Firefox下:web
input[type="number"]{-moz-appearance:textfield;}
第二種方案:chrome
將type="number"改成type="tel",一樣是數字鍵盤,可是沒有箭頭。app
原文連接:http://stackoverflow.com/questions/3790935/can-i-hide-the-html5-number-input-s-spin-boxide