如果 web.config 中存在另一个配置,则会覆盖 Scott Hanselman 提出的修复:
<browserCaps>
ASP.NET 浏览器功能嗅探器可以通过 3 种方式进行配置(相互覆盖):
Machine wide in <windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers
Site only by using .browser files in App_Browsers folder
Site only by using <browserCaps> Element in web.config
对于 IE10,在下面添加以下案例<browserCaps> <case "Mozilla .. MSIE ..>
:
<case match="\d{2,}" with="${version}">
frames=true
tables=true
cookies=true
backgroundsounds=true
vbscript=true
javascript=true
javaapplets=true
activexcontrols=true
tagwriter=System.Web.UI.HtmlTextWriter
ecmascriptversion=3.0
msdomversion=${major}${minor}
w3cdomversion=1.0
css1=true
css2=true
xml=true
<filter with="${letters}" match="^b">
beta=true
</filter>
<filter with="${extra}" match="Crawler">
crawler=true
</filter>
</case>