html number input field always display spinner?

后端 未结 3 2069
灰色年华
灰色年华 2021-01-20 00:11

when I make a number input field like this:


Then the number field gets a spinner added to it whenever I hov

3条回答
  •  甜味超标
    2021-01-20 00:56

    It is not possible to do this with the Browser specific style. You would need to either build that functionality yourself using some Javascript or look for a premade script on the interwebs.

    You can only hide those Shadow DOM elements as they trigger very browserspecific css-attributes to provide the functionalitys like onclick or onhover.

    See: http://css-infos.net/property/-webkit-appearance (You could trigger another behaviour for your Input-Field, but you cant force it to be always visible)

提交回复
热议问题