IE7缩小到适合的错误 [英] IE7 Shrink-to-fit bug

查看:90
本文介绍了IE7缩小到适合的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

整个网页是另一个网站上的iframe(在这种情况下,jquery.com仅用于演示目的)。我有一个覆盖Hello World,如果你点击X它最小化它(再次点击它会打开它。)



这一切都在IE8上正常工作, Firefox,Chrome等...



但是在IE7中,它将白色背景扩展到整个宽度(见截图)。我相信这是与收缩合身或收缩包装有关。

解决方案

使用IE8兼容模式测试,如果在 div.sidebar 我删除 background-color:#fff ,它是固定的。删除它对IE8 / Firefox没有明显的区别。



要摆脱IE7右侧的页面滚动条,需要设置 overflow :hidden 上和/或

The entire page is an iframe onto another website (in this case, jquery.com just for demo purposes). I have an overlay "Hello World", and if you click on the X it minimizes it (click again it will open it).

It all works fine on IE8, Firefox, Chrome, etc...

However in IE7 it extends the white background to the entire width (see screenshot). I believe it's something to do with the shrink-to-fit or shrink-wrapping.

解决方案

Testing with IE8 compatibility mode, if on div.sidebar I remove background-color: #fff, it's fixed. Removing it makes no visible difference to IE8/Firefox.

To get rid of the page scrollbar on the right in IE7, you need to set overflow: hidden on html and/or body.

这篇关于IE7缩小到适合的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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