简体   繁体   English

jQuery手风琴和滑块无法协同工作

[英]jQuery accordion and slider not working together

We have the following code: 我们有以下代码:

http://jsfiddle.net/c5cpk/ http://jsfiddle.net/c5cpk/

Which should show an accordion with content in each pane along with a jquery slider. 哪个应该在每个窗格中显示带有内容的手风琴以及一个jquery滑块。

At the moment it doesn't it just show's the controls. 目前,它并不只是显示控件。

If you edit the CSS line: 如果您编辑CSS行:

#accordion .pane {  display:none;  height:705px; color:#fff; font-size:12px; }

and take away the display:none you will see the panes expanded and the slideshows work correctly. 并带走display:none会看到窗格展开并且幻灯片可以正常工作。

Could anyone help me out as getting quite frustrated with the way it's (not) working. 有人能对我的工作方式感到沮丧吗?

通过使用以下命令在页面加载后不分配显示来解决:

jQuery('#accordion div.pane').css('display', 'none');

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

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