我面临的问题是: 当我在我的 html 网站中设置一个 iframe 以显示另一个 html 页面时,我在左侧有 2 个滚动条,但我根本无法滚动。 我想要的是滚动主页而不是 iframe 内的页面。
内嵌框架:
<div class="sixteen columns">
<div id="main" style="position: absolute">
<iframe src="html5/Project1.html" height="700px" width=" 1000" scrolling="no"></iframe>
</div>
问题存在于 IE 和 FF 而不是 Chrome。
最佳答案
尝试
<iframe src="html5/Project1.html" style="overflow:hidden;width:1000px;height:70px"</iframe>
关于html - iframe 的滚动条问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24465856/