【发布时间】:2014-03-21 20:20:55
【问题描述】:
我使用 Shadowbox 一次显示多个 iframe (http://www.shadowbox-js.com/)。
我尝试了这个解决方案: IFRAMEs and the Safari on the iPad, how can the user scroll the content?
但是没有运气。
生成的 iframe 的语法是:
<div id="sb-body">
<div id="sb-body-inner">
<iframe id="sb-player">
//iframe content
</div>
</div>
</div>
任何想法如何解决这个问题?我使用 iframe 的方式需要滚动。
【问题讨论】:
-
使用
overflow-y:scroll;,不过要看孩子的height,是否超过parent container的height。