IE10 - Setting specific browser & document modes

别等时光非礼了梦想. 提交于 2020-01-02 02:38:08

问题


I need to get an old web application to display correctly in IE10. Using the developer tools of IE, the configuration of IE10 Compatibility browser mode & IE5 Quirks document mode, proved to be the best configuration.

Using the pages code-behind to adjust the response header to include the 'X-UA-Compatible' HTTP header when the browser is IE10, the document mode is correctly set to IE5 Quirks mode, but the browser mode is still stuck on IE10.

While the web application is being re-factored to be cross-browser compatible, how can I adjust the modes without requiring the user to set any configuration (compatibility view settings) or using the developer's toolbar.


回答1:


Try setting the doc type to: <meta http-equiv="X-UA-Compatible" content="IE=5quirks"/> This will render the same way as quirks mode did in older versions of IE.



来源:https://stackoverflow.com/questions/12383511/ie10-setting-specific-browser-document-modes

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