gpt4 book ai didi

css - AngularJS:可滚动的提前输入字段

转载 作者:技术小花猫 更新时间:2023-10-29 11:15:11 26 4
gpt4 key购买 nike

我的 HTML

<div class="form-group">
<label class='control-label col-md-4' for='id_paymentCurrency'>{{'PAYMENT_CURRENCY' | translate}}</label>
<div class='col-md-4'>
<div id="scrollable-dropdown-menu">
<input type="text" class="form-control" data-trim-value="false" ng-trim="false" id ='id_paymentCurrency' ng-model="vm.data.paymentCurrency" typeahead-append-to-body="true" required
typeahead-editable="false"
uib-typeahead="currency.code for currency in vm.getCurrencies($viewValue)"ng-disabled="disabled" />
</div>
</div>
</div>

我的 CSS

#scrollable-dropdown-menu .tt-menu {
max-height: 150px;
overflow-y: auto;
}

我正在使用 angular-bootsrap 附带的 angular 1.x 和 typeahead,我无法使滚动条出现。

http://fiddle.jshell.net/H7LA4/46/

最佳答案

问题出在您的选择器上。试试这个:

#scrollable-dropdown-menu .dropdown-menu {
max-height: 150px;
overflow-y: auto;
}

您可以在此 fiddle 中检查它是否按预期工作

关于css - AngularJS:可滚动的提前输入字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38636183/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com