3 jquery ui 滑块连接 [英] 3 jquery ui slider connected
本文介绍了3 jquery ui 滑块连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试连接 3 个 jquery ui 滑块.
I try to connect 3 jquery ui sliders.
三个值的总和必须始终保持在 100,因此当一个滑块移动时,其他两个必须移动.
The sum of the 3 values must always stay at 100, so when a slider is moved the two others must moved.
我做了一些东西,它可以工作,但速度很慢:http://jsfiddle.net/vBsTR/2/
I made something, it works but it is very slow: http://jsfiddle.net/vBsTR/2/
如果您只连接一个滑块,它工作正常(尝试移动第一个):http://jsfiddle.net/tyjJx/2/
If you just connect one slider it works fine (try to move the first one): http://jsfiddle.net/tyjJx/2/
有人可以帮忙吗?谢谢!
Can anyone help please? Thanks!
推荐答案
我也在寻找这个问题的答案,最终从头开始编写它
I was looking for an answer to this as well and ended up writing it from scratch
http://jsbin.com/ojeruc/1/edit
这篇关于3 jquery ui 滑块连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文