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


当前回答

我发现了一个新工具,让这变得非常非常简单。

使用IE9开发者模式。按F12。

在文件菜单上,你可以看到浏览器版本:IE9,点击这里,你可以把浏览器版本一直改回7。对于6,你仍然需要一个虚拟PC。

其他回答

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

如果你的电脑安装了IE8,你也可以测试你的网站在IE7下是如何工作的。 当您在IE7浏览器中进入需要测试的页面时,打开“工具”->“开发人员工具”。然后在“开发人员工具”对话框的菜单中,点击“浏览器模式:[当前模式]”,在那里你可以选择3个选项。 也就是说,

IE7 IE8 IE8兼容模式

我发现了一个新工具,让这变得非常非常简单。

使用IE9开发者模式。按F12。

在文件菜单上,你可以看到浏览器版本:IE9,点击这里,你可以把浏览器版本一直改回7。对于6,你仍然需要一个虚拟PC。

还有CrossBrowserTesting,它支持许多浏览器,似乎不需要在你的电脑上安装任何插件就可以工作,还包括一个非常整洁的布局比较工具。

CrossBrowserTesting是从Browsershots内部发布的。

这并没有直接回答你的问题,但是你看过石蕊图吗?我们倾向于使用它来测试跨多个浏览器的HTML/CSS兼容性(由Litmus支持)。