Is there a way to make the jQuery UI slider start with 0 on top instead of on bottom?

前端 未结 4 986
伪装坚强ぢ
伪装坚强ぢ 2021-01-08 00:19

Look at this demo of the jQuery UI Slider.

Notice how when the handle is down the bottom, the value is 0?

Is there a way to reverse this, so the handle up t

4条回答
  •  天命终不由人
    2021-01-08 00:38

    You could just turn it upside down using css3.

    #slider {
         -moz-transform: rotate(180deg);
         -webkit-transform: rotate(180deg);
         -ms-transform: rotate(180deg);
         -o-transform: rotate(180deg);
         transform: rotate(180deg);
    }
    

提交回复
热议问题