答案 0 :(得分:1)
查看documentation for the accordion。在第一页上,有一行说明:
注意:如果您希望一次打开多个部分,请不要使用 手风琴强>
然后文档继续提供一种简单的方法来实现一次打开多个面板:
$(document).ready(function(){
$('.accordion .head').click(function() {
$(this).next().toggle();
return false;
}).next().hide();
});
将它与一些简单的标记和样式相结合,您就可以开展业务了。