jQuery UI Examples - Slider (Slider)
Drag the handle to select a value.
For more details about the slider widget, see the API documentation Slider Widget。
Default functionality
The basic slider is horizontal, with a single handle that can be moved with the mouse or arrow keys.
jQuery UI 滑块(Slider) - 默认功能
Color picker
Combines three sliders to create a simple RGB color picker.
jQuery UI 滑块(Slider) - 颜色选择器
简单的颜色选择器
Multiple sliders
Combines horizontal and vertical sliders, each with its own options, to create a music player UI.
jQuery UI 滑块(Slider) - 多个滑块
主音量
图形均衡器
88
77
55
33
40
45
70
Range slider
Settings range Set the option to true to get a range of values with two draggable handles. The control between the handles is filled with a different background color to indicate that values in that interval are selectable.
jQuery UI 滑块(Slider) - 范围滑块
Range with a fixed maximum
Fix the maximum value of the range slider so the user can only select the minimum value. Set the range option to "max".
jQuery UI 滑块(Slider) - 带有固定最大值的范围
Range with a fixed minimum
Fix the minimum value of the range slider so the user can only select the maximum value. Set the range option to "min".
jQuery UI 滑块(Slider) - 带有固定最小值的范围
Slider bound to a select
How to bind a slider to an existing select element. The select remains visible to show changes. When the selection changes, the slider is updated accordingly.
jQuery UI 滑块(Slider) - 绑定到 select 的滑块
Slider scrollbar
Use a slider to manipulate the positioning of content on the page. In this example, it is a scrollbar that returns a value.
jQuery UI 滑块(Slider) - 滑块滚动条
Snapping increment
By setting the step option to an integer, you set the increment of the slider value, usually a divisor of the maximum value. The default increment is 1.
jQuery UI 滑块(Slider) - 对齐增量
Vertical range slider
Change the orientation of the range slider to vertical. By .height() assigning a height value, or by setting the height through CSS, and setting the orientation option to "vertical".
jQuery UI 滑块(Slider) - 垂直的范围滑块
Vertical slider
Change the slider's orientation to vertical. By .height() assigning a height value, or by setting the height through CSS, and setting the orientation option to "vertical".
jQuery UI 滑块(Slider) - 垂直的滑块