我正在玩引导崩溃。但我想知道是否有办法,使引导崩溃也在两行。我尝试了几件事,但似乎没有人对我有用。
以下是我尝试过的一件事,但这似乎不起作用。打开一个手风琴标签时,无论我尝试什么,另一个都不会崩溃......
关于如何解决这个问题的任何想法或建议?
<div class="row-fluid">
<div class="accordion" id="accordion2">
<div class="span6">
<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">
Anim pariatur cliche...
</div>
</div>
</div>
</div>
<div class="span6">
<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">
Anim pariatur cliche...
</div>
</div>
</div>
</div>
</div>
</div>
答案 0 :(得分:2)
我终于找到了多列引导崩溃的解决方案。我会创建一个有效的fiddle,因为如果有人问过同样的问题。
<div class="row-fluid" id="accordion2" >
<div class="span6" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
collapse 1
</a>
</div>
<div id="collapseOne" class="accordion-body collapse in">
<div class="accordion-inner">
collapse item 1
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
collapse 2
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner">
collapse item 2
</div>
</div>
</div>
</div>
<div class="span6" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
Collapse 3
</a>
</div>
<div id="collapseThree" class="accordion-body collapse">
<div class="accordion-inner">
Collapse item 3
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFour">
Collapse 4
</a>
</div>
<div id="collapseFour" class="accordion-body collapse">
<div class="accordion-inner">
Collapse item 4
</div>
</div>
</div>
</div>
</div>
答案 1 :(得分:2)
编辑:道歉,此代码参考下面的示例。 SOF的新手我害怕
这很棒,但淘气的顽皮多个ID!
尝试:
<div class="row-fluid accordion2" >
<div class="span6 accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent=".accordion2" href="#collapseOne">
collapse 1
</a>
</div>
<div id="collapseOne" class="accordion-body collapse in">
<div class="accordion-inner">
collapse item 1
</div>
</div>
</div>
等......
请注意,就此而言,它可能不是那么重要的嵌套重复类。