【发布时间】:2013-12-14 09:40:05
【问题描述】:
我的 UI 中的 iframe 元素有问题。当我调整屏幕大小(使其更小)并开始使用水平滚动滚动时,它不会滚动到 iframe,但 iframe 保持在相同的固定位置,并且无法看到它。
和 HTML:
<div id="top-element">Some div that has greater width than the inner div</div>
<div id="iframe-wrapper">
<iframe src="http://www.apple.com/" scrolling="auto"></iframe>
</div>
【问题讨论】:
-
使用
position: absolute;而不是固定的。
标签: css iframe scroll horizontal-scrolling