Hide Spinner in Input Number - Firefox 29

后端 未结 7 685
傲寒
傲寒 2020-12-02 04:22

On Firefox 28, I\'m using works great because it brings up the numerical keyboard on input fields which should only contain number

相关标签:
7条回答
  • 2020-12-02 05:20

    I mixed few answers from answers above and from How to remove the arrows from input[type="number"] in Opera in scss:

    input[type=number] {
      &,
      &::-webkit-inner-spin-button,
      &::-webkit-outer-spin-button {
        -webkit-appearance: none;
        -moz-appearance: textfield;
        appearance: none;
    
        &:hover,
        &:focus {
          -moz-appearance: number-input;
        }
      }
    }
    
    Tested on chrome, firefox, safari
    
    0 讨论(0)
提交回复
热议问题