和其他人一样,我需要在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 ?


当前回答

我已经根据Donavon的教程安装了虚拟PC,但似乎我的笔记本电脑的BIOS不支持硬件虚拟化,需要运行虚拟PC。所以,确保你的设备支持之前,你进一步与虚拟PC。

其他回答

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

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

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

试试http://finalbuilds.edskes.net/iecollection.htm。

Utilu IE Collection contains multiple IE versions, which are standalone so they can be used at the same time. Conditional Comments work exactly the same as in the native versions. The original version number is shown correctly in the User Agent string. The version number can be found in the window title too. Utilu IE Collection also includes the Internet Explorer Developer Toolbar 1.00.2189.0. This Explorer Bar provides a variety of tools which make troubleshooting websites easier. The Internet Explorer Developer Toolbar is compatible with Internet Explorer 5.0 and higher when using Windows 2000 or higher. Utilu IE Collection has the option to install the Firebug Web Development Extension for Internet Explorer. Firebug provides a lot of useful tools which make web development easier...

你不能用IE8代替IE7。IE8的JavaScript引擎和IE7完全不同。尝试在IE7和IE8中在数组或对象文字中留下尾随逗号——在前者中你会得到一个错误,而在后者中即使在兼容模式下也不会。如果你想让你的网站在IE7中工作,你需要在IE7中测试。

也可以看看微软的兼容性检查器,它会给你一些问题的警告,这些问题会影响你网站的向后兼容性。

http://ie.microsoft.com/testdrive/html5/compatinspector/

我还建议运行几个虚拟机,而不是在同一个Windows实例上运行多个版本的Internet Explorer。

微软在ie6、ie7和ie8浏览器的“Internet Explorer应用兼容性VPC镜像”下载页面提供了虚拟PC磁盘镜像。

从上述链接可用的虚拟磁盘映像的当前列表如下:

Windows XP SP3下的Internet Explorer 6 Windows XP SP3下的Internet Explorer 7 Windows XP SP3下的Internet Explorer 8 Windows Vista上的Internet Explorer 7 Windows Vista上的Internet Explorer 8

(名单截止到2009年10月11日。所有版本都有有效期。)