gpt4 book ai didi

twitter-bootstrap - Accordion Inside Accordion twitter Bootstrap ?

转载 作者:行者123 更新时间:2023-12-03 10:49:40 25 4
gpt4 key购买 nike

我正在尝试使用 Twitter Bootstrap 在另一个 Accordion 中实现 Accordion 。可能吗?如果是这样,那么请帮助我编写代码,因为我尝试实现它但我没有成功。

最佳答案

只需在 div 中包含另一个 Accordion ,其类 Accordion 内部:

<div class="accordion" id="accordion1">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion1" href="#collapseOne">
Collapsible Group #1
</a>
</div>
<div id="collapseOne" class="accordion-body collapse in">
<div class="accordion-inner">
This is a simple accordion inner content...
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion1" href="#collapseTwo">
Collapsible Group #2 (With nested accordion inside)
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner">

<!-- Here we insert another nested accordion -->

<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseInnerOne">
Collapsible Inner Group Item #1
</a>
</div>
<div id="collapseInnerOne" class="accordion-body collapse in">
<div class="accordion-inner">
Anim pariatur cliche...
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseInnerTwo">
Collapsible Inner Group Item #2
</a>
</div>
<div id="collapseInnerTwo" class="accordion-body collapse">
<div class="accordion-inner">
Anim pariatur cliche...
</div>
</div>
</div>
</div>

<!-- Inner accordion ends here -->

</div>
</div>
</div>
</div>

请记住使用不同的 Accordion ID。

关于twitter-bootstrap - Accordion Inside Accordion twitter Bootstrap ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18558941/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com