我有一个角应用程序,并且集成了角ui引导程序,我的问题是下拉链接正在被表行阻塞,使用z-index:
<div class="panel panel-default">
<div class="panel-body">
<div class=" pull-right">
<!-- Split button -->
<div class="btn-group invoice_new_item_btn_ul" uib-dropdown>
<button id="split-button" type="button" class="btn btn-danger"> Add Item </button>
<button type="button" class="btn btn-danger" uib-dropdown-toggle>
<span class="caret"></span>
</button>
<ul class="invoice_new_item_btn_ul uib-dropdown-menu" role="menu" aria-labelledby="split-button">
<li role="menuitem"><a href="" ng-click="vm.addNewChoice()">Action</a></li>
</ul>
</div>
</div>
<div class="table-responsive">
<table class="table table-striped" >
<thead>
<tr>
<th></th>
<th>Item Name</th>
<th>Type</th>
</tr>
</thead>
<tbody id="search_result">
<tr class="odd gradeX" ng-repeat="u in vm.patient.patient_finance_item">
<td></td>
<td ng-bind="u.item_name"></td>
<td ng-bind="u.item_type"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>css/sass :
.invoice_new_item_btn_ul{
z-index:1000 !important;
}发布于 2016-04-25 11:03:08
uib-dropdown-menu只作为属性,而不是类,这就是为什么下拉菜单没有显示。
https://github.com/angular-ui/bootstrap/blob/master/src/dropdown/dropdown.js#L285-L287
https://stackoverflow.com/questions/34295828
复制相似问题