如何让 jscrollpane 与 jquery 手风琴脚本共存?
我有一个使用手风琴脚本的网站,我想在其中一个手风琴选项卡中放置一个滚动框。然而,滚动框工作得很好,但破坏了手风琴脚本。有办法解决这个冲突吗?
这是只有手风琴脚本的网站: http://www.namibiaonline.net/sandbox/NBAA/index9.html
这是 jscrollpane 和手风琴脚本的损坏版本: (出于某种原因,我只允许粘贴一个超链接,因此要找到损坏的超链接,只需将 /index9.html 替换为 /scroll_test.html)
任何帮助将不胜感激:) 灰
I have a site that uses a accordion script, and I want to place a scrollbox inside one of the accordion tabs. However, the scrollbox works just fine, but breaks the accordion script. Is there a way around this conflict?
This is the site with just the accordion script:
http://www.namibiaonline.net/sandbox/NBAA/index9.html
And this is the broken one with jscrollpane and the accordion script:
(for some reason I'm only allowed to paste one hyperlink, so to get to the broken one, just replace /index9.html with /scroll_test.html)
Any help would be much appreciated :)
Ash
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这应该可以解决你的问题。尝试测试版:
http://groups.google.com/group/jscrollpane/browse_thread /thread/c1bc1bf63e3f80d8
我相信这就是您的问题所在:
http://jscrollpane.kelvinluck .com/auto_reinitialise.html
This should fix your problem. Try the beta:
http://groups.google.com/group/jscrollpane/browse_thread/thread/c1bc1bf63e3f80d8
and I believe this is where your issue lied:
http://jscrollpane.kelvinluck.com/auto_reinitialise.html
我遇到了同样的问题,这就是我几乎解决它的方法:
确保为具有滚动窗格类的容器定义正确的宽度高度。在我的例子中,我创建了 3 个容器,如下所示:
}
类滚动窗格是我定义溢出、高度和宽度的地方。如果我在父容器中执行此操作,则不会显示滚动,因为它占据了所有高度;如果我在子容器中执行此操作,则会显示非风格化的滚动。
但我对第一个窗格仍然有疑问。第一次加载页面时它正确显示,但是当我移动到另一个手风琴选项卡然后返回第一个选项卡时,该元素的宽度设置为 0。这只发生在第一个选项卡上,其他选项卡工作正常。
I had the same problem and this is how I almost solved it:
Be sure that you define the correct width height for the containers which have the scroll-pane class. In my case I have created 3 containers like this:
}
The class scroll-pane is where I defined the overflow, height and width. If I do in the parent container, the scroll is not shown because it takes all the height and also if I do in a child container, a non stylized scroll is shown.
But I still having an issue with the first pane. It is correctly shown the first time the page is loaded, but when I move to another accordion tab and then come back to the first one, the width of this element is set to 0. It only happens with the first one the others work fine.