开发者

Is there a way to configure IE9 so that it starts in IE8 compatibility mode?

I'm working on a Selenium-based continuous integration server for website testing. We can only afford one Windows box at the moment, so it has to provi开发者_C百科de for our IE7, IE8, and IE9 testing. Is there any way I can automatically set up Internet Explorer 9 so that when it runs, it already starts in IE8 or IE7 Compatibility Mode, rather than needing to set that mode every single time a test is run?


Try setting X-UA-Compatible:

<meta http-equiv="X-UA-Compatible" content="IE=8">

There are others as well to force compat mode or forcing full standards mode.

http://msdn.microsoft.com/en-us/library/ms533876(v=VS.85).aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜