Change jQuery UI slider size

2019-06-06 18:14发布

I am using this UI Slider and the size is the some on my site too (not the width but the button's size - demo the bottom of the page).- But here the slider button's size is much nicer, smaller - demo right hand side.

So how can I change the UI Slider button's size? OR How can I add other kind of button e.g. image?

2条回答
干净又极端
2楼-- · 2019-06-06 18:51

css from example page:

.ui-slider .ui-slider-handle {

    cursor: default;
    height: 1.2em;
    position: absolute;
    width: 1.2em;
    z-index: 2;
}
查看更多
Summer. ? 凉城
3楼-- · 2019-06-06 18:53

For who is using vertical slider my problem solved by the following:

.ui-slider {
    position: relative;
}
查看更多
登录 后发表回答