我Dropup看起来是这样的 - >滚动Dropup菜单中角的js
<div class="dropup">
<button class="btn btn-primary btn-raised dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{selectList.selectedListItem}}
<div class="ripple-container"></div>
</button>
<div class="dropdown-menu">
<a class="dropdown-item" ng-repeat="list in roleList" href="#" ng-value="list.role" name="{{list.role}}" ng-click="update(list.role, list._id)" id="{{list.role}}" ng-model="selectList" name="selectedList">{{list.role}}</a>
</div>
</div>
,我使用dropup菜单上CSS - >
overflow: scroll;
max-height: 200px;
但它并不适用于工作我。 任何其他解决方案?
更新 添加这个CSS到下拉 - 菜单 - >后
overflow: scroll;
max-height: 200px !important;
我的下拉菜单现在看起来就像没有scrollable->
你是什么意思**它不起作用**? – Shubhranshu
添加工作小提琴。 –
是'dropdown-menu'你自己的班级还是第三方的CSS类,如boootstrap或材料设计?您可以尝试'max-height:200px!important' – barteloma