Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个主页,其中包含指向其他应用程序的链接。一些在 asp 中,一些在 asp.net 中。我想强制浏览器以 IE 10 兼容视图模式呈现页面,以便所有其他页面也以相同的方式呈现。这不应该使用开发人员工具手动完成。
您可以尝试添加一个 HTTP 标头来告诉 IE 使用可用的最新兼容模式(如果使用 IE 8,将是 IE 8 兼容模式,如果是 IE10,将使用 IE 10 兼容模式):
Response.AddHeader "X-UA-Compatible", "IE=edge"