How to Change Default Document Mode in IE11 ?   (When the default "Document Mode" is not Edge after pressing F12 key)

You can change the default document mode in IE11 by the following options:

Option 1 - For Apache Http Server:   (Add the following in the end of the httpd.conf file)

<IfModule headers_module>
   Header set X-UA-Compatible: "IE=edge,chrome=1"
</IfModule>

Option 2 - For the HTML page, add the following in the header section:

<html>
<head>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
</head>
</html>


PS.
One of the advantages of changing the default document mode is to resolve JQuery display issue with IE 11.

 

 

 

 

文章標籤
全站熱搜
創作者介紹
創作者 DanBrother 的頭像
DanBrother

DanBrother的部落格

DanBrother 發表在 痞客邦 留言(2) 人氣(79)