<分区>
标签 javascript jquery html css
如何禁用 iframe 中的滚动条并加载完整的网页并使用浏览器滚动条上下滚动? iframe 应该看起来是页面的一部分,而不是 iframe。
最佳答案
你想要这样的东西:
<iframe src="" scrolling="no" seamless></iframe>
存在时,seamless属性指定 <iframe>
应该看起来像是包含文档的一部分,然后没有边框或滚动条。坏点仅在 Opera、Chrome 和 Safari 中支持。
和CSS:
iframe {
overflow:hidden;
}
关于javascript - 如何禁用iframe的滚动条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24525554/