iframe总是在IE7中显示滚动条 [英] Iframe always showing scroll bars in IE7

查看:103
本文介绍了iframe总是在IE7中显示滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IE7中遇到恼人的问题。我有一个网站,在每个页面的底部都有一个iframe,而对于我的生活,我无法隐藏滚动条。这只是在IE7中,我测试的每个其他浏览器都没问题。

Having an annoying issue in IE7. I have a website where, at the bottom of every page theres an Iframe, and for the life of me I cannot get the scroll bars to hide. This is only in IE7, every other browser I have tested is fine.

我有滚动=否并设置overflow:hidden;仍然没有工作。

I have scrolling="no" and set overflow:hidden; still not working though.

如果有人得到任何东西他们可以建议我会非常好

If anyones got anything they could suggest I'd be very greatful

http://www.keyscape.co.uk 是网站

干杯
Martin

Cheers Martin

推荐答案

在我的iframe目标网页正文中添加scroll =no为了我。总的来说,这是我为各种浏览器添加到我的iframe中的额外内容,也许这会帮助其他人:

adding scroll="no" to the body of my iframe target page worked for me. In total, here's the additional cruft I've added to my iframe for various browsers, perhaps this will help someone else:

iFrame源HTML:

iFrame source HTML:

<body style="overflow:hidden;" scroll="no">

页面上的iFrame标记:

iFrame tag on page:

<iframe width="280" height="196" src="http://dev.example.com/source.html"
style="overflow:hidden;" marginheight="0" marginwidth="0" frameborder="0">
</iframe>

这篇关于iframe总是在IE7中显示滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆