![](/img/trans.png)
[英]Is it possible to proof an div element of visibility inside a “overflow-x:scroll” div-container ?
[英]Issue with option visibility in ui-select + parent div has overflow-x to scroll
我需要在包含overflow-x: scroll
樣式的父div
元素中使用ui-select
。
問題是當我們點擊下拉菜單時,選項列表隱藏在滾動條后面。 請參考此圖片https://prnt.sc/oitdlw
我在 JSFiddle 創建了一個示例,它顯示了問題和預期結果http://jsfiddle.net/u4q82a71/4/
如果需要任何其他信息,請告訴我。
提前致謝
試試這個。 刪除溢出-x:滾動
css
.inner {
width: 140px;
height: 70px;
}
我想你不能刪除overflow-x: scroll
出於某種原因:) 你可以將此樣式添加到你的<ui-select-choices>
.ui-select-choices {
position: fixed;
top: inherit;
width: inherit !important;
}
然后你可以看到它即使使用你的overflow-x: scroll
也能正常工作overflow-x: scroll
希望它有幫助
如果這仍然是一個問題,解決方案是將 append-to-body="true" 添加到 ui-select 元素
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.