【问题标题】:Why my user agent is MSIE 7.0?为什么我的用户代理是 MSIE 7.0?
【发布时间】:2015-05-13 18:42:26
【问题描述】:

登录页面同时具有header("X-UA-Compatible: IE=edge"); 标头和<head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> 标头标记。但是当我登录我的用户字符串时,我没有得到 IE11,我得到了Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3),即 IE7。同样在 F12 中,我可以看到我的 Internet Explorer 处于 Edge 模式。

【问题讨论】:

标签: internet-explorer internet-explorer-7 internet-explorer-11


【解决方案1】:

按照这个MSDN Blog

兼容性视图

如果用户选择在 兼容性视图(单击工具 > 兼容性视图设置)然后 IE 将发送一个模仿 Internet Explorer 7 UA 的 User-Agent 字符串 字符串:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; Trident/7.0; .NET4.0E; .NET4.0C)

很可能会处于开发者模式, 检查禁用开发者模式是否有帮助。

【讨论】:

    猜你喜欢
    • 2011-12-08
    • 1970-01-01
    • 2014-12-19
    • 1970-01-01
    • 2011-01-10
    • 1970-01-01
    • 2017-07-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多