jquery-ui 滑块中的可拖动框未呈现
我正在使用 Trent Richardson 的 timepicker 并且我在使用 jquery-ui 滑块时遇到问题他的小部件。滑块中的可拖动框未完全渲染。我留下的看起来像是滑块最左侧的框的边框,当我单击它时它不会移动。
我尝试过将此工具与完整版本的 jquery 和 jquery-ui 包一起使用,所以我知道我没有丢失包,并且我没有发现其他人有类似的问题。其他一切在时间选择器中都工作得很好,所以我相信这是滑块特有的问题。我的 javascript 与上面链接中显示的第一个示例相同。
有人在使用滑块时遇到过类似的问题吗?
更新
发现问题。事实证明,当我下载日期选择器的 css 文件时,我没有选择滑块。从那时起,我下载了必要的滑块功能,但忘记重新下载 css...
DOH!
I am using Trent Richardson's timepicker and I am having an issue with the jquery-ui sliders that are used in his widget. The draggable boxes in the sliders are not rendering fully. I am left with what looks like the border of what would have been the boxes on the far left side of the slider and it does not move when I click on it.
I have tried using this tool with the full version of jquery and jquery-ui packages so I know that I am not missing a package and I have not found anyone else with a similar problem. Everything else works just fine in the timepicker so I believe that this is a problem specific to the slider. My javascript is identical to the first example shown in the link above.
Has anyone experience a similar problem when working with sliders?
UPDATE
Found the issue. It turns out I did not have sliders selected when I downloaded the css files for my datepicker. I had since then downloaded the necessary slider functions but forgot to redownload the css...
DOH!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,就是这样,解决方案是将滑块 css 添加到您的项目中。该文件可以在这里找到:
http://code .google.com/p/jquery-ui/source/browse/trunk/themes/base/jquery.ui.slider.css
Yes that's it, the solutin is to add the slider css to your project. The file can be found here :
http://code.google.com/p/jquery-ui/source/browse/trunk/themes/base/jquery.ui.slider.css