html input range step as an array of values

前端 未结 4 687
太阳男子
太阳男子 2020-12-05 22:17

I\'ve been playing around with the input type=range for the first time, and ideally I\'d like to set the step value to an array of values. I looked over the spe

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 22:36

    According to the W3C spec, the values for step can be "any" or a positive floating-point number. That's it.

    The step attribute, if specified, must either have a value that is a valid floating-point number that parses to a number that is greater than zero, or must have a value that is an ASCII case-insensitive match for the string "any".

提交回复
热议问题