我有一个问题与一个网站不能正常工作在IE10 (一些页面使用iframes)。在IE10中,我可以点击“兼容性视图”按钮,一切都会恢复正常。
为了避免用户不得不这样做,我尝试在母版页(它是一个.NET网站)的页眉以及根web.config (在system.webserver配置块中)中插入meta标记。我也尝试过IE=9,IE-8...
毫无办法。是不是浏览器没有正确解释标签?我知道它会看到它,因为当标签在那里时,“兼容性视图”图标就消失了。我遗漏了什么?
发布于 2013-04-09 19:32:00
Ie 9-兼容性:<meta http-equiv="X-UA-Compatible" content="IE=9">
如果你想要ie8:<meta http-equiv="X-UA-Compatible" content="IE=8">
如果两个都想要:<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8;">
发布于 2013-04-05 10:19:47
试一试
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1,requiresActiveX=true">参考:https://github.com/h5bp/html5-boilerplate/blob/v4.1.0/doc/extend.md#internet-explorer
发布于 2013-06-21 02:39:12
尝试添加Response.Cache.SetCacheability(HttpCacheability.NoCache);
example:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GeneralLedgerCodeListingCustomForm.aspx.cs" Inherits="xyz.GeneralLedgerCodeListingCustomForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
Response.Cache.SetCacheability(HttpCacheability.NoCache);
%>https://stackoverflow.com/questions/15824700
复制相似问题