number input - always show spin buttons

后端 未结 1 1301
野的像风
野的像风 2020-12-05 10:40

In Google Chrome, input[type=number] spin buttons are shown only on hover.

\"Chrome

1条回答
  •  一生所求
    2020-12-05 11:18

    You can target spin buttons using ::-webkit-inner/outer-spin-button and than just set opacity to 1 (spins are always there, but in default they have opacity: 0).

    Code:

    
    
    

    Fiddle: http://jsfiddle.net/dk8fj/

    0 讨论(0)
提交回复
热议问题