更新时间:2022-12-21 15:38:10
我遇到类似的问题,在弹出窗口中显示选择下拉列表。选择下拉菜单可见,但它没有响应点击事件。页面高度小于弹出窗口覆盖的高度。在向身体标记添加最小高度后,选择再次起作用。下面是我使用的示例css。
I've faced similar issue while trying to show select dropdown in a popup. Select dropdown was visible but it was not responding to click events. The page height was less than what the popup was covering. After adding min-height to body tag, "select" was functional again. Below is sample css that I'm using.
body{
min-height:300px;
}
.popup-wrapper{
position:absolute;
top:40%;
}
希望这有帮助。