去掉 input type number 後面的 上、下箭頭

input[type="number"]::-webkit-outer-spin-button,


input[type='number']::-webkit-inner-spin-button, 
input[type='number']::-webkit-outer-spin-button { 
    -webkit-appearance: none;    
    appearance: none;
}
input[type='number'], 
input[type='number']:hover,
input[type='number']:focus {
  -moz-appearance: textfield;
}

注意各種瀏覽器支援~

demo

ref.

1個讚