我有这个块
<div class="panel-group panel-group-lists collapse in" id="accordion2">
<div class="panel panel-margin">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion2" href="#collapseFour" class="collapsed">
<span class="badge badge-danger badge-reports badge-reports-text">NEW</span>
<span class="report-title">VIN Code 1M8GDM9A_KPO42788</span>
<span class="report-date">11 jun / 12:54 AM</span>
<!-- dropdown must be here -->
</a>
</h4>
</div>
<div id="collapseFour" class="panel-collapse collapse" style="height: 0;">
<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>
我需要使用glyphicon-option-horizontal图标在面板右侧添加下拉按钮。如何将按钮放到这个手风琴上?我尝试了在bootflat和bootstrap中找到的所有内容:input-group-btn等。请帮我解决这个问题/
答案 0 :(得分:0)
添加了span
这样的内容。
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFour" class="collapsed">
<span class="badge badge-danger badge-reports badge-reports-text">NEW</span>
<span class="report-title">VIN Code 1M8GDM9A_KPO42788</span>
<span class="report-date">11 jun / 12:54 AM</span>
<span class="glyphicon glyphicon-option-horizontal"></span>
</a>
希望这会有所帮助。