我手风琴的工作非常好,但我需要的是一次只打开一个标签,这意味着打开一个标签然后应该关闭另一个标签。
目前,您可以看到我们可以点击标签链接打开所有标签页。
此处代码
<div id="accordion" class="checkout">
<div class="panel checkout-step">
<div class="head" role="tab" id="headingOne">
<img src="{{ asset('bundles/leaderboxfrontfront/img/1.png') }}" alt="">
<div id="bubble">
<h1><a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" > MON PROJET</a></h1>
</div>
</div>
<div id="collapseOne" class="panel-collapse collapse in">
<div class="form-zone">
<div class="content">
Some content
</div>
</div>
</div>
</div>
<div class="panel checkout-step">
<div class="head" role="tab" id="headingTwo">
<img src="{{ asset('bundles/leaderboxfrontfront/img/3.png') }}" alt="">
<div id="bubble">
<h1><a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" > je choisis mon centre</a></h1>
</div>
</div>
<div id="collapseTwo" class="panel-collapse collapse">
<div class="form-zone">
<div class="content">
Some content
</div>
</div>
</div>
</div>