Force IE10 to run in IE10 Compatibility View?

前端 未结 8 2430
野性不改
野性不改 2020-12-05 02:35

I have an app that is broke in IE10 but runs fine in IE10 Compatibility View. A quick google results in the



        
相关标签:
8条回答
  • 2020-12-05 03:20

    While you should fix your site so it works without Compatibility View, try putting the X-UA-Compatible meta tag as the very first thing after the opening <head>, before the title

    0 讨论(0)
  • 2020-12-05 03:22

    I had the exact same problem, this - "meta http-equiv="X-UA-Compatible" content="IE=7">" works great in IE8 and IE9, but not in IE10. There is a bug in the server browser definition files that shipped with .NET 2.0 and .NET 4, namely that they contain definitions for a certain range of browser versions. But the versions for some browsers (like IE 10) aren't within those ranges any more. Therefore, ASP.NET sees them as unknown browsers and defaults to a down-level definition, which has certain inconveniences, like that it does not support features like JavaScript.

    My thanks to Scott Hanselman for this fix.

    Here is the link -

    http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx

    This MS KP fix just adds missing files to the asp.net on your server. I installed it and rebooted my server and it now works perfectly. I would have thought that MS would have given this fix a wider distribution.

    Rick

    0 讨论(0)
提交回复
热议问题