Styling a input type=number

前端 未结 8 1679
野趣味
野趣味 2020-12-12 23:17

Is it possible to apply a style in the inner \"up arrow\" and \"down arrow\" of a in CSS? I would like to change the background of

8条回答
  •  盖世英雄少女心
    2020-12-13 00:07

    The css to modify the spinner arrows is obtuse and unreliable cross-browser.

    The most stable option I have found, is to absolutely position an image with pointer-events: none; on top of the spinners.

    Untested in Edge but works in all other browsers.

提交回复
热议问题