为什么 iframeing yahoo.com 可以没有滚动条,但 iframeing google.com 会有滚动条?
代码是
<iframe scrolling="no" src="http://www.google.com" width="200" height="100"></iframe>hello
没有办法摆脱滚动条吗? (应该在所有 IE 7、8、FF、Chrome、Safari 中工作)
如果它是 iframes yahoo.com,那么它就可以工作...
the code is
<iframe scrolling="no" src="http://www.google.com" width="200" height="100"></iframe>hello
there is no way to get rid of the scrollbar? (should work in all IE 7, 8, FF, Chrome, Safari)
If it iframes yahoo.com, then it works...
sample:
http://jsfiddle.net/tEXmL/1/
http://jsfiddle.net/tEXmL/2/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能是因为 Google 在其 CSS 中明确设置了
overflow-y:scroll
而 Yahoo 没有。Could be because Google explicitly sets
overflow-y: scroll
in their CSS whereas Yahoo does not.您可以使用 iframe 的无缝属性。
You can use seamless attribute of iframe.