IE10-设置特定的浏览器和文件模式 [英] IE10 - Setting specific browser & document modes

查看:165
本文介绍了IE10-设置特定的浏览器和文件模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要获取一个旧的Web应用程序才能在IE10中正确显示.使用IE的开发人员工具,可以配置IE10兼容浏览器模式和IE5 Quirks文档模式被证明是最佳配置.

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.

当浏览器为IE10时,使用代码后的页面调整响应标头以包括"X-UA-Compatible" HTTP标头,文档模式已正确设置为IE5 Quirks模式,但浏览器模式仍然停留在IE10上.

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.

在将Web应用程序重构为跨浏览器兼容的同时,如何在不要求用户设置任何配置(兼容性视图设置)或使用开发人员工具栏的情况下调整模式.

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.

推荐答案

尝试将文档类型设置为: <meta http-equiv="X-UA-Compatible" content="IE=5quirks"/> 这将呈现与旧版IE中的怪癖模式相同的方式.

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.

这篇关于IE10-设置特定的浏览器和文件模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆