【发布时间】:2014-11-20 16:28:30
【问题描述】:
我有一个 iframe,我需要它有一个滚动溢出。似乎可以在桌面上运行,我使用了一种解决方法使其在 iOS 中运行。它现在可以在 android 和 iOS 上运行。但是,iOS8 失败了。
<html>
<body>
<style type="text/css">
.scroll-container {
overflow: scroll;
-webkit-overflow-scrolling: touch;
}
#iframe_survey {
height: 100%;
}
.scroll-container {
height: 100%;
width: 100%;
overflow: scroll;
}
</style>
<div class="scroll-container scroll-ios">
<iframe id="iframe_survey" src="www.iframe.com" style="border:0px #FFFFFF none;" name="myiFrame" frameborder="0" marginheight="0px" marginwidth="0px" width="100%"></iframe>
</div>
</body>
【问题讨论】:
-
遇到同样的问题,iOS8搞砸了一些很糟糕的事情
-
是 safari 还是 UIWebView 应用?
-
safari for iOS8 @ReigoHein
-
chrome for iOS8 好像也有同样的问题
-
我遇到了同样的问题,对我有用的是将 -webkit-overflow-scrolling:touch 提供给 dom 元素。我还对元素高度做了一些操作。我必须使用 jquery 明确地给出元素高度。如果你能给我们提琴,我可以帮你修。
标签: iframe scroll overflow ios8