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


当前回答

对于windows用户,windows XP模式允许你在windows 7专业版、企业版或终极版上运行多个版本的IE。

http://blogs.msdn.com/b/ie/archive/2011/02/04/testing-multiple-versions-of-ie-on-one-pc.aspx

其他回答

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

我使用http://www.spoon.net/browsers(仅限windows)。

你可以运行IE8、IE7、IE6、Firefox 3.5、Firefox 3、Firefox 2、Safari 4、Safari 3、Opera 10、Opera 9、Chrome浏览器。

你只需要安装一个插件,然后点击相应的图标。它将下载并运行运行上述每个浏览器所需的文件。

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

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

正如Eduardo提到的,微软最近发布的SuperPreview是一种工具,可以让你看到网页是如何在许多不同的浏览器中呈现的,即使它们没有安装在本地。

例如,即使您没有安装这些浏览器,您也可以在Internet Explorer 6、Internet Explorer 7、Internet Explorer 8、Firefox和Safari中查看页面的外观。

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

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