在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", 同样是数字键盘, 但是没有箭头.

参考:

Stack Overflow: Can I hide the HTML5 number input’s spin box?
移除HTML5 input在type="number"时的上下小箭头

相关文章:

  • 2021-12-27
  • 2022-12-23
  • 2022-01-18
  • 2022-02-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案