Show tick positions in custom range input

后端 未结 3 444
萌比男神i
萌比男神i 2020-12-30 13:37

Please take a look at the following CodePen. There you can see my custom range input. I want the tick positions of the slider to be shown and for that I added the datalist:<

3条回答
  •  鱼传尺愫
    2020-12-30 14:30

    -webkit-appearance: none;
    

    The above removes platform-native styling (Chrome / Safari), which removes the ticks.

    You can get more information here, but unfortunately, styling support for input ranges (particularly ticks) is still pretty terrible.

提交回复
热议问题