Disable Compatibility View Through Code In IE?

后端 未结 4 2463
情歌与酒
情歌与酒 2021-02-20 18:33

I for some reason am calling a doctype preferably XHTML 1.0 Transitional, and for some reason every single time I open it in Internet Explorer I get...

Browser Mode: IE9

4条回答
  •  日久生厌
    2021-02-20 19:28

    I have this issure too. And I found a solution :

    insert meta tag in header HTML:

    
    

    and set the equivalant header:

    header('X-UA-Compatible: IE=Edge');

    Or if you use Zend Framework (or any framework for that matter), something like this will do Zend_Controller_Front::getInstance()->getResponse()->setHeader('X-UA-Compatible', 'IE=Edge');

    solution in this link :

    http://www.enrise.com/2012/03/internet-explorer-9-compatibility-view-list/

    Thanks.

提交回复
热议问题