Fix HTML Broken in IE Compatibility View
- Details
- Category: HTML
- Published: Thursday, 07 May 2015 12:29
- Written by Oscar
- Hits: 2889
Issue Description
IE default will using Compatibility View for internal website. But it will always make HTML5 or update version website broken.
There is three way for fixed this IE issue.
HTML Header
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge" /><![endif]-->
Using .htaccess
<IfModule headers_module>
Header set X-UA-Compatible: IE=edge
</IfModule>
PHP Header
header('X-UA-Compatible: IE=edge');
Description
IE=5
Renders content in IE5 standards mode (aka Quirks mode)
IE=7
Renders content IE7's standards mode ignoring the <!DOCTYPE> directive.
IE=EmulateIE7
Use the <!DOCTYPE> directive to determine how to render the content
IE=8
Renders content in IE8 standards mode
IE=edge
Renders content in highest mode available… equal to IE=8 if the page is browsed with IE8.
IE=EmulateIE8
Display Standards DOCTYPEs in IE8 Standards mode; Display Quirks DOCTYPEs in Quirks mode.
Use this tag to override compatibility view on client machines and force Standards to IE8 Standards.
Solve This Issue by Toolkit
This is NOT a good way for the solution, but some time we haven't any other choose.
This Plugins is prower by Google but it is out of the life cycle and Google have been stop support for it.
Name of Toolkit
Google Chrome Frame Standalone Enterprise
Backup Link
tools.jarnvid.com/toolkit/GoogleChromeframeStandaloneEnterprise.zip