我想讓我的按鈕做打開和摘要狀態,然後關閉按鈕將關閉它。如何使用引導程序崩潰使3個狀態
首先點擊將在總結打開(如可能爲一個特定的高度只是爲了顯示摘要),並在第二次點擊將充分打開DIV,然後一個單獨的按鈕/鏈接關閉它們:
<a class="btn btn-primary" data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
link to open/summary
</a>
<a class="pull-right" href="#">close button here</a>
<div class="collapse" id="collapseExample">
<div class="well">
This is My summary section
<br><br><br>
if you see this then its a fully opened state
</div>
</div>
我有一個非工作fiddle在這裏玩
嗨mzografski,我這裏有你的代碼在它的小提琴,但修改它,這可能嗎? https://jsfiddle.net/DTcHh/6322/ – Oliver 2015-04-07 01:18:20
你可以做到這一點,如果你分開兩個列表,第二個列表設置內部可摺疊元素 - 在我的代碼是'