How can I open Internet Explorer 9 in IE7 mode by default?

南楼画角 提交于 2019-12-07 03:16:33

问题


I want to set my IE to always open in IE7 mode.

I mostly develop in Chrome, and for purposes of efficiency and 80/20 principle, I assume that IE9 looks and behaves mostly like Chrome.

And I assume that if something looks and works decent enough in IE7, most of the time IE8 will be fine.

So I just want my Internet Explorer to always open as version 7 without me having to change it in the developer panel.

This will also be useful for my Selenium WebDriver functional tests that I want to run in IE7.

Thoughts?


回答1:


could these meta tags work for you?

<!-- Force IE9 to IE8 compatibility mode -->
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<!-- Force IE9 to IE7 compatibility mode -->
<meta http-equiv="X-UA-Compatible" content="IE=7" />



回答2:


I just found http://www.makeuseof.com/tag/internet-explorer-google-chrome-tab/ and it seems to open in IE7 mode by default.

There is still the caveat (of course) that this fake IE7 isn't the same as a native install of IE7. But this might be a decent trade-off.




回答3:


The commenters are right - you should not assume that Chrome will act the same as IE9, IE7, or anything. And furthermore, IE9 running in compatibility view (whether it is set from Developer Tools or from the Compatibility View settings) can not be counted on to act the same as IE7.

But, if what you want is for IE9 to always launch in Compatibility View, just set that in your browser's options (the bottom checkbox in your Compatibility View settings).



来源:https://stackoverflow.com/questions/12416663/how-can-i-open-internet-explorer-9-in-ie7-mode-by-default

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!