Android不会滚动https iframe

时间:2013-07-26 03:10:45

标签: android iframe https scroll

在Android上使用任何超出域名的 https iframe src会导致iframe不滚动:

<div style="-webkit-overflow-scrolling:touch;
    height:300px;width:300px;overflow:auto;">
<iframe height="100%" src="https://fully-qualified-domain/"></iframe>
</div>

有没有办法让iframe根据其内容自然展开?

1 个答案:

答案 0 :(得分:4)

到目前为止,我发现的唯一解决方案是在iframe上设置一个似乎适合内容的最小高度。如果它太大,那么iframe滚动很长时间并且使用起来有点麻烦,但至少可以看到iframed页面。

<div style="-webkit-overflow-scrolling:touch;
   height:300px;width:300px;overflow:auto;">
<iframe style="min-height:1000px;" height="100%" src="https://fully-qualified-domain/"></iframe>
</div>