Jquery Slider 在滑动条上显示比例

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3359662/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 15:17:30  来源:igfitidea点击:

Jquery Slider display scale on slider bar

jquerysliderscale

提问by Sachin

I have used jquery sliderwith the help of which user select appropriate value for further calculation.

我在用户选择合适的值以进行进一步计算的帮助下使用了jquery 滑块

Everything work perfect except the scale bar. I want to show the diffrent values of the slider to be displayed on slider bar. Something like slider scale. I have google it but I could not get the proper solution.

除了比例尺之外,一切都完美无缺。我想显示要在滑块栏上显示的滑块的不同值。类似滑块刻度的东西。我有谷歌它,但我无法得到正确的解决方案。

Can any one tell me how to achive this?

谁能告诉我如何实现这一目标?

回答by Rahul Gupta

I don't think jquery-ui slider has provision to show labels like scale across the slider length. So a very good alternative to it is using an another plugin which has support for such a customization.

我不认为 jquery-ui 滑块可以在滑块长度上显示诸如比例之类的标签。因此,一个非常好的替代方法是使用另一个支持此类自定义的插件。

Take a look at this plugin : http://simeydotme.github.io/jQuery-ui-Slider-Pips/

看看这个插件:http: //simeydotme.github.io/jQuery-ui-Slider-Pips/