Bootstrap手风琴选项卡未打开

用户名

我正在尝试使用可折叠的组项目实现自举式手风琴。我设法使它显示在我的网站上,但是选项卡没有打开。我已将bootstrap链接到我的html文件,将必需的js脚本添加到,<head>并复制并粘贴了文档在此处提供的完全相同的代码http://getbootstrap.com/javascript/#collapse

我想念什么?

                <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"><!-- begin accordion -->
              <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingOne">
                  <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                      Collapsible Group Item #1
                    </a>
                  </h4>
                </div>
                <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
                  <div class="panel-body">
                    Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                  </div>
                </div>
              </div>
              <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingTwo">
                  <h4 class="panel-title">
                    <a class="collapsed" data-toggle="collapse" data-parent="accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
                      Collapsible Group Item #2
                    </a>
                  </h4>
                </div>
                <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
                  <div class="panel-body">
                    Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                  </div>
                </div>
              </div>
              <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingThree">
                  <h4 class="panel-title">
                    <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
                      Collapsible Group Item #3
                    </a>
                  </h4>
                </div>
                <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
                  <div class="panel-body">
                    Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                  </div>
                </div>
              </div>
            </div><!-- end accordion -->
阿卜杜阿(Abdooapps)

您的代码运行正常,我认为您没有正确包含文件:

<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"><!-- begin accordion -->
              <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingOne">
                  <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                      Collapsible Group Item #1
                    </a>
                  </h4>
                </div>
                <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
                  <div class="panel-body">
                    Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                  </div>
                </div>
              </div>
              <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingTwo">
                  <h4 class="panel-title">
                    <a class="collapsed" data-toggle="collapse" data-parent="accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
                      Collapsible Group Item #2
                    </a>
                  </h4>
                </div>
                <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
                  <div class="panel-body">
                    Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                  </div>
                </div>
              </div>
              <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="headingThree">
                  <h4 class="panel-title">
                    <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
                      Collapsible Group Item #3
                    </a>
                  </h4>
                </div>
                <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
                  <div class="panel-body">
                    Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
                  </div>
                </div>
              </div>
            </div><!-- end accordion -->

链接到jsffidle:http : //jsfiddle.net/qs1aLxqc/

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Bootstrap手风琴选项卡不折叠

来自分类Dev

引导手风琴不会自动折叠其他打开的选项卡

来自分类Dev

jQuery UI-使用外部链接在选项卡中打开手风琴

来自分类Dev

jQuery手风琴显示特定选项卡

来自分类Dev

单击时关闭手风琴选项卡

来自分类Dev

双重嵌套视图:UI-Router或UI-Bootstrap选项卡/手风琴?

来自分类Dev

双重嵌套视图:UI-Router或UI-Bootstrap选项卡/手风琴?

来自分类Dev

双重嵌套视图:UI-Router或UI-Bootstrap选项卡/手风琴?

来自分类Dev

在选项卡中使用两个Bootstrap手风琴

来自分类Dev

可访问的手风琴角色(选项卡和选项卡列表)

来自分类Dev

可访问的手风琴角色(选项卡和选项卡列表)

来自分类Dev

jQuery手风琴-如何在页面加载时默认打开第二个选项卡

来自分类Dev

如何在PrimeFaces手风琴面板中打开所有动态加载的选项卡

来自分类Dev

flex 4如何实现可打开多个选项卡的自定义手风琴

来自分类Dev

单击特定选项卡时,如何隐藏在手风琴菜单项中打开的所有选项卡?

来自分类Dev

Bootstrap手风琴未关闭

来自分类Dev

手风琴面板-选项卡中的多行标题

来自分类Dev

使用jQuery在asp.net中使用选项卡制作手风琴

来自分类Dev

jQuery手风琴选项卡没有关闭

来自分类Dev

选项卡中的多个手风琴出现故障

来自分类Dev

手风琴没有显示在选项卡中?为什么?

来自分类Dev

根据html和javascript中的手风琴选项卡的单击显示特定内容

来自分类Dev

jQuery更新后激活选项卡和手风琴

来自分类Dev

jQuery手风琴-如何首先关闭所有选项卡

来自分类Dev

保持手风琴菜单的所有选项卡关闭

来自分类Dev

使用选项卡和手风琴显示结果

来自分类Dev

跳至锚定+执行Ajax +在一个函数中打开jquery-ui手风琴选项卡

来自分类Dev

我可以在打开和关闭选项卡之前从jQuery手风琴动态生成和删除内容吗?

来自分类Dev

Bootstrap手风琴,单击时滚动到活动(打开)手风琴的顶部?

Related 相关文章

  1. 1

    Bootstrap手风琴选项卡不折叠

  2. 2

    引导手风琴不会自动折叠其他打开的选项卡

  3. 3

    jQuery UI-使用外部链接在选项卡中打开手风琴

  4. 4

    jQuery手风琴显示特定选项卡

  5. 5

    单击时关闭手风琴选项卡

  6. 6

    双重嵌套视图:UI-Router或UI-Bootstrap选项卡/手风琴?

  7. 7

    双重嵌套视图:UI-Router或UI-Bootstrap选项卡/手风琴?

  8. 8

    双重嵌套视图:UI-Router或UI-Bootstrap选项卡/手风琴?

  9. 9

    在选项卡中使用两个Bootstrap手风琴

  10. 10

    可访问的手风琴角色(选项卡和选项卡列表)

  11. 11

    可访问的手风琴角色(选项卡和选项卡列表)

  12. 12

    jQuery手风琴-如何在页面加载时默认打开第二个选项卡

  13. 13

    如何在PrimeFaces手风琴面板中打开所有动态加载的选项卡

  14. 14

    flex 4如何实现可打开多个选项卡的自定义手风琴

  15. 15

    单击特定选项卡时,如何隐藏在手风琴菜单项中打开的所有选项卡?

  16. 16

    Bootstrap手风琴未关闭

  17. 17

    手风琴面板-选项卡中的多行标题

  18. 18

    使用jQuery在asp.net中使用选项卡制作手风琴

  19. 19

    jQuery手风琴选项卡没有关闭

  20. 20

    选项卡中的多个手风琴出现故障

  21. 21

    手风琴没有显示在选项卡中?为什么?

  22. 22

    根据html和javascript中的手风琴选项卡的单击显示特定内容

  23. 23

    jQuery更新后激活选项卡和手风琴

  24. 24

    jQuery手风琴-如何首先关闭所有选项卡

  25. 25

    保持手风琴菜单的所有选项卡关闭

  26. 26

    使用选项卡和手风琴显示结果

  27. 27

    跳至锚定+执行Ajax +在一个函数中打开jquery-ui手风琴选项卡

  28. 28

    我可以在打开和关闭选项卡之前从jQuery手风琴动态生成和删除内容吗?

  29. 29

    Bootstrap手风琴,单击时滚动到活动(打开)手风琴的顶部?

热门标签

归档