【问题标题】:jquery vertical slider handle not movingjquery垂直滑块句柄不移动
【发布时间】:2013-12-30 22:11:46
【问题描述】:

我正在使用 jquery 滑块作为垂直方向 bt 垂直滑块手柄不动。请帮助,我知道我遗漏了一些明显的东西。 --Demo here--

$( ".slider" ).slider({
       animate: true,
orientation:"vertical",
           range: "min",
           value: 50,
           min: 0,
           max: 100,
           step: 1,
           slide: function( event, ui ) {
               $("#slider-result").html( ui.value );
           }
           });

【问题讨论】:

    标签: javascript jquery css jquery-plugins slider


    【解决方案1】:

    DEMO

    我只是删除了top: -3px; 来自.ui-slider-handle

    如果要将滑块的起始位置设置为顶部,请在滑块函数中使用 value 参数(值 = 100)。

    【讨论】:

      【解决方案2】:

      只需删除 .ui-slider-handle 中的 top:-3px;

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-09-04
        • 1970-01-01
        • 1970-01-01
        • 2013-02-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多