简体   繁体   English

jQuery UI范围滑块

[英]JQuery ui range slider

whatever i do i cannot get to this result 无论我做什么我都无法获得这个结果 我想要的结果

using this code 使用此代码

<div data-role="rangeslider">
    <input name="range-1a" id="range-1a" min="0" max="100" value="0" type="range">
    <input name="range-1b" id="range-1b" min="0" max="100" value="100" type="range">
</div>

i always get this result 我总是得到这个结果 我总是得到愚蠢的结果 this should be straight foward right ? 这应该是直接的吧? I linked the latest jquery mobile and ui js files and also css files so what the heck is going wrong ? 我链接了最新的jquery mobile和ui js文件以及css文件,那么到底出了什么问题? i want them to be aligned all next to each other >.< 我希望它们彼此对齐>。<

if anyone comes here with the same problem the solution is to clean your header and to clean your links to css and js files. 如果有人遇到同样的问题,解决方案是清理标题,并清理指向CSS和JS文件的链接。 i found out i was using an old css link to jquery.mobile 我发现我正在使用旧的CSS链接到jquery.mobile

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />

just add the right css file and make sure to call the latest one which in my case now it is 只需添加正确的css文件并确保调用最新的css文件即可

<link rel="stylesheet" href="//code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM