As we all know, Microsoft's Internet Explorer team has been committed to building IE8 as the most industry-compliant browser. Unfortunately, not all websites currently agree with these standards. If you are worried that your website will not work normally in IE8 standard mode, the following methods may be helpful to you:
1. You can add the following meta header to all the pages on your website.
<Meta http-equiv = "X-UA-compatible" content = "Ie = emulateie7"/>
This tag allows your website pages to run in IE8 compatibility mode, regardless of whether the browser compatibility mode is set. For a website page, this may be a good solution!
2. Configure IIS and add HTTP Header
This method can easily access the website in IE8 compatibility mode without modifying the website source code. Of course, you can also modify the config configuration file of the website to achieve this:
<? XML version = "1.0" encoding = "UTF-8"?>
<Configuration>
<System. webserver>
<Httpprotocol>
<Customheaders>
<Add name = "X-UA-compatible" value = "Ie = emulateie7">
</Customheaders>
</Httpprotocol>
</System. webserver>
</Configuration>
3. If your website runs in an Apache environment, the following article details how to configure it.
Http://blogs.msdn.com/hanuk/archive/2008/08/28/apache-httpd-configuration-for-ie7-standard-mode-rendering-in-ie8.aspx
For more information about the Internet Explorer 8 compatibility model, visit Microsoft's official website:
The http://msdn.microsoft.com/en-us/library/cc288325 (vs.85). aspx
<Meta http-equiv = "X-UA-compatible" content = "Ie = emulateie7"/>
<Meta http-equiv = "X-UA-compatible" content = "Ie = emulateie8"/>
<Meta http-equiv = "X-UA-compatible" content = "Ie = emulateie9"/>