为什么我的页面工作在IE9的IE7模式,但不是在IE7本身? [英] Why does my page work in IE9's IE7 mode, but not in IE7 itself?

查看:218
本文介绍了为什么我的页面工作在IE9的IE7模式,但不是在IE7本身?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用我们的新主页,在IE9的浏览器和文档模式(不是只是兼容性模式,但实际的IE7和IE8仿真)进行了大量测试后。网站在每种模式下工作,更不用说现代浏览器。然而,在它启动后,我得到一个电子邮件,说该网站在IE7非常破碎。我去了一个废弃的机器,启动Windows XP,启动IE7,并加载页面。对我的恐怖,布局确实是破碎! (不只是幻灯片!)

I recently went live with our new home page, after heavily testing it in each of IE9's browser and document modes (not just compatibility mode, but actual IE7 and IE8 emulation). The site works in each mode, not to mention modern browsers. However, after it launched I got an email that said the site was very broken in IE7. I went to an abandoned machine and booted up Windows XP, started IE7, and loaded the page. To my horror, the layout was indeed broken! (NOT just the slideshow!)

最重要的是,为什么我的页面在IE7中不工作,即使它在IE9的IE7模式下工作吗?作为次要问题,它可能是错误?

Most importantly, why does my page not work in IE7, even though it works in IE7 mode in IE9? And as a secondary question, what might be "wrong" with it?

编辑:我已经确定我的问题之一可能是幻灯片,但添加 .ie7 #slideshow {display: none!important} 甚至不会隐藏幻灯片。我无法通过CSS访问它。

Edit: I have figured out that one of my problems may be the slideshow, but adding .ie7 #slideshow {display:none !important} won't even hide the slideshow. I can't access it via CSS.

编辑2 :有另一个问题,原生IE7 - 该首页的页脚,而此页是超小文本,无法缩放。它不会这样做在IE9的IE7模式(不兼容),或在任何其他浏览器。另一个差异的例子。

Edit 2: There is another problem that only shows up in native IE7 -- the footer on that home page, and this page, is ultra-tiny text that can't be zoomed. It doesn't do this in IE9's IE7 mode (not compatibility), or in any other browser. Another example of the discrepancy.

推荐答案

我不知道IE9的IE7兼容模式,但IE7兼容模式IE8是众所周知的不是一个真正的IE7的完美副本。它有大量的bug和自己的奇怪,它们不出现在正常的IE7。

I don't know about IE9's IE7-compatibility mode but the IE7-compatiblity mode built into IE8 is well known for not being a perfect copy of a real IE7. It has a large number of bugs and quirks of its own which do not appear in normal IE7.

这是不够的,我永远不会建议任何人实际使用兼容性模式来测试他们的网站...除了你仍然需要处理偶尔的用户谁实际上在他们的现场浏览器使用兼容模式。因此,不是让开发人员更容易,MS通过向组合中添加另一个可能的渲染引擎,使我们更难以做到。叹息。

It was bad enough that I would never have recommended anyone to actually use compatibility mode to test their site... except that you still need to cope with the occasional user who is actually using compatiblity mode on their live browser. So rather than making things easier for the developer, MS actually made things harder for us by adding yet another possible rendering engine to the mix which. Sigh.

我没有尝试IE9的兼容模式,但如果你的经验是什么,那么他们仍然有同样的问题。

I haven't tried IE9's compatibility modes, but if your experience is anything to go by, then they've still got the same problem. It's a shame (but not surprising) that MS didn't learn from the first time they made that blunder.

不是使用兼容模式来测试,而是最好的解决方案我知道是使用名为 IE Tester 的应用程序,它允许您安装和运行所有版本的IE相互并排。它仍然不完美(唯一的方式,你会得到完美,你已经发现,是有一个真正的IE7在自己的XP的真实副本),但它是更加接近真实的东西比IE自己的兼容性模式。

Rather than using compatibility modes to test, the best solution I know of is to use an application called IE Tester, which allows you to install and run all versions of IE alongside each other. It's still not perfect (the only way you'll get perfect, as you've already discovered, is to have a real IE7 on its own real copy of XP), but it is much much closer to the real thing than IE's own 'compatiblity' mode.

这篇关于为什么我的页面工作在IE9的IE7模式,但不是在IE7本身?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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