How to change the input slider thumb colour depending on value?

前端 未结 4 1460
小蘑菇
小蘑菇 2021-01-24 11:03

I\'m making a site that includes a range input slider. I would like the slider thumb to change colour according to the value of the slider.

For example, if the value was

4条回答
  •  孤街浪徒
    2021-01-24 11:49

    This is how I would do it: I would create a new