【发布时间】:2018-10-11 10:07:46
【问题描述】:
我是带有 iFrame 的页面上的引导模式,其形式在一个很大的 iframe 中。我无法滚动此表格 在 iPhone 浏览器上垂直。我在android手机上交叉检查了相同的内容,并且可以向下滚动。但是用iphone 好像有问题。
不知道是什么问题
<div class="modal fade" id="modalLoginForm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog model-bookingform" role="document">
<div class="modal-content">
<div class="modal-header text-center" style="position:absolute; right:0px; z-index:999; padding:0px;">
@*<h4 class="modal-title w-100 font-weight-bold">Form</h4>*@
<button type="button" class="close btn-model-close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="embed-responsive embed-responsive-16by9 z-depth-1-half bookingformiframe-w">
<iframe id="iframex" class="embed-responsive-item" style="overflow:auto;" src="https://example.com/largeform"></iframe>
</div>
</div>
</div>
</div>
CSS
我什至在没有解决方案的情况下添加了额外的 css,当我尝试滚动而不是滚动 iframe 内容时,它似乎 滚动页面
@media (max-width:800px) {
#modalLoginForm {
overflow: scroll;
z-index: 999999 !important;
}
iframex {
overflow: scroll !important;
z-index: 9999999 !important;
}
}
.modal {
overflow-y: auto !important;
}
.modal-open .modal {
overflow-x: auto !important;
overflow-y: auto !important;
}
【问题讨论】:
标签: css twitter-bootstrap-3 vertical-scrolling