开发者

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

开发者 https://www.devze.com 2023-03-29 18:52 出处:网络
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

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

精彩评论

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