[英]Disable vertical scroll bar for md-autocomplete autosuggestion drop down
我想為 md-autocomplete autosuggestion 下拉菜單禁用滾動條。是否有任何 css 或屬性方法可以做到這一點?
試試看。 溢出-y:隱藏;
我可以通過向全局styles.scss添加一個新的 class 來禁用垂直滾動條:
.mat-autocomplete-panel.max-height-panel { max-height: 100%; }
...並使用classList指令將其設置為 Material 組件:
<mat-autocomplete #auto="matAutocomplete" class="max-height-panel" classList="max-height-panel" panelWidth="300px">
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.