2013-07-26 34 views
1

在Android上:的Android不會滾動HTTPS IFRAME

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

有沒有辦法有iframe的自然擴展基於其內容?

回答

3

到目前爲止我發現的唯一解決方案是在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>