和其他人一样,我需要在Internet Explorer 6和Internet Explorer 7上测试我的代码。现在Internet Explorer 8为开发人员提供了一些很棒的工具,我很乐意使用。我还想开始用Internet Explorer 8测试我的代码,因为它很快就会发布。

The question is: how to run Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8 on the same machine. So far with Internet Explorer 6 and Internet Explorer 7 I've been using Multiple IE. But people have reported (see comments on the page linked in the previous sentence) issue with Internet Explorer 6 after installing Internet Explorer 8. Those errors are related to focus in form fields. Running Internet Explorer 7 wouldn't matter so much as Internet Explorer 8 can use the Internet Explorer 7 rendering engine, but we still need Internet Explorer 6.

如何在同一台机器上运行Internet Explorer 6、Internet Explorer 7和Internet Explorer 8 ?


当前回答

没有人提到这一点,但IETester是一个很棒的工具。支持Internet Explorer 5.5、6、7和8RC1浏览器。呈现与相应的浏览器匹配。至少我还没发现任何出入。

我通常用它来做一个基本的布局检查。我仍然需要虚拟机来调试JavaScript或使用特定ie版本的开发人员工具栏。

其他回答

为了备份其他用户,您需要在Windows机器上运行Virtual PC实例。如果您尝试进行Internet Explorer的多安装,则会破坏页面上的条件注释,这将使测试变得困难(例如,使用Internet Explorer 5、6和7。在Windows机器上,即使在ie 5中,IF语句也会解析为ie 7,这意味着更奇怪的bug。

更多信息以及下载和运行Internet Explorer 6虚拟映像的链接: http://blogs.msdn.com/ie/archive/2007/04/17/ie7-virtual-pc-image-and-ie6-virtual-pc-image-refresh.aspx

如果你已经有了虚拟电脑,下面是图片: http://www.microsoft.com/Downloads/details.aspx?FamilyID=21eabb90-958f-4b64-b5f1-73d0a413c8ef&displaylang=en

我使用虚拟PC运行安装了IE6的windows实例。这比在同一台电脑上安装不同版本要笨拙一些,但它是一个100%正常运行的IE6。多个IE在大多数测试中都能很好地工作,但它缺少最后的百分之几。

不要花太多精力让页面在IE8中看起来正确,它仍然有一些小故障,很可能会在最终版本中修复。

非常好的选择是更新到Internet Explorer 10。你会发现非常有用的开发工具,包括兼容IE5到ie10,包括怪癖模式。如果切换IE版本i菜单,页面呈现立即发生变化。

该模式的一个非常好的特性是javascript和HTML(类似firebug)调试器,它在兼容模式下工作。这意味着,你可以用最新的调试器在非常老的IE中调试javascript,这是一个非常酷的功能。虚拟机不能这样做。是的,您可以使用虚拟机来检查最终结果。

在同一台机器上使用Windows 7 XP模式运行IE6、IE7和IE8

http://articles.sitepoint.com/article/ie6-ie7-ie8-win7-xp-mode

我不会这么做的。使用虚拟电脑。这可能需要一点准备,但从长远来看,你会感谢自己的。根据我的经验,你不能让它们并排安装,除非它们是独立的安装,否则你不能真正验证它是100%真实的浏览器渲染。

更新:看起来更好的方法之一(如果运行Windows 7)是使用Windows XP模式来设置多个虚拟机:在一台PC上测试多个版本的IE。

更新2:(2014年11月)自上次更新以来,有新的解决方案。微软现在为任何环境提供虚拟机,以测试多个版本的IE: Modern。即