设置滑块jquery:属性min出现问题

时间:2019-02-28 13:24:43

标签: css html5 twitter-bootstrap slider

我正在使用滑块,并编写了以下代码:

<input id="dy-in" data-slider-id='inSlider' type="text"  data-slider-step="1" />


    $('#dy-in').slider({
      min: 0,
      // maximum value
      max: 10,
      // increment step
      step: 1,
      // the number of digits shown after the decimal.
....

通过这种配置,我可以获得以下滑块: enter image description here

如果我这样更改配置:

  $('#dy-in').slider({
      min: 1,
      // maximum value
      max: 10,
      // increment step
      step: 1,
      // the number of digits shown after the decimal.

我获得了此滑块:

enter image description here

我也希望在第二种情况下具有选定的部分(蓝色)。 我该怎么办?

0 个答案:

没有答案