与X-UA兼容的IE = 10在EDGE上不起作用

时间:2019-07-23 05:35:06

标签: internet-explorer microsoft-edge x-ua-compatible

我正在使用与EDGE不兼容的库,所以我试图将文档模式更改为IE10。我已经申请

httpReponse.setHeader("X-UA-Compatible", "IE=10"); 

它适用于所有设备,但在Edge中仍然无法使用。在Edge浏览器中,文档模式仍为Edge。请建议我是否有任何遗漏。

1 个答案:

答案 0 :(得分:0)

请查看这篇文章X-UA-Compatibility Meta Tag and HTTP Response Header

在任何版本的Microsoft Edge中都不会实现X-UA-Compatibility元标记和HTTP响应标头。