1

首先,我要感谢 TwitterBootsrap 团队正在制作的东西,但文档需要更多的工作。

我在我的网站上有网站示例的代码:

<div class="accordion" id="accordion2">
                <div class="accordion-group">
                  <div class="accordion-heading">
                    <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">Collapsible Group Item #1</a>
                  </div>
                  <div id="collapseOne" class="accordion-body collapse in">
                    <div class="accordion-inner">
                      Sentence 1
                    </div>
                  </div>
                </div>
                <div class="accordion-group">
                  <div class="accordion-heading">
                    <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">Collapsible Group Item #2</a>
                  </div>
                  <div id="collapseTwo" class="accordion-body collapse">
                    <div class="accordion-inner">
                      Sentence2
                    </div>
                  </div>
                </div>
                <div class="accordion-group">
                  <div class="accordion-heading">
                    <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">Collapsible Group Item #3</a>
                  </div>
                  <div id="collapseThree" class="accordion-body collapse">
                    <div class="accordion-inner">
                      Sentence3
                    </div>
                  </div>
                </div>
              </div>

问题是手风琴的每一行只打开和关闭一次,然后手风琴就变得没用了。我究竟做错了什么?

4

1 回答 1

1

我有同样的问题。将 jQuery 更新到最新版本 (1.9.1) 修复了它。

于 2013-04-05T09:48:06.237 回答