2013-04-05 133 views
0

我有一个网站在IE10中无法正常工作(使用iframe的一些页面)的问题。在IE10中,我可以点击“兼容性视图”按钮,一切正常。IE9兼容模式

为了避免用户必须这样做,我尝试将元标记插入到母版页(它是一个.NET网站)的标题中,并且也在根web.config中(在system.webserver配置块中)。我也试过IE = 9,IE-8 ...

没什么用。浏览器没有正确解释标签吗?我知道它看到它,因为当标签在那里时,'兼容性视图'图标消失。我错过了什么?

+0

它可能是最好的尝试制定出为什么IE10不工作,所以它可以是固定的,而不是改变到一个较早的文档模式(浏览器模式无法在全球范围内,除非改变compat的名单上。参见http://blogs.msdn.com/b/ie/archive/2010/10/19/testing-sites-with-browser-mode-vs-doc-mode.aspx)。 IE10在F12控制台中是否出现错误?你使用浏览器嗅探吗?尝试在http://modern.ie/上运行网站扫描器 – 2013-04-15 22:24:24

回答

2

IE 9 - 兼容性:<meta http-equiv="X-UA-Compatible" content="IE=9">
如果你想即8:如果你想<meta http-equiv="X-UA-Compatible" content="IE=8">
两个:<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8;">

0

尝试增加 响应.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); 
%>