Override intranet compatibility mode IE8

后端 未结 19 2309
执念已碎
执念已碎 2020-11-22 10:04

By default IE8 forces intranet websites into compatibility mode. I tried changing the meta header to IE8, but it doesn\'t acknowledge the meta header and just uses the brows

19条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 10:16

    I found a working answer that allow to override the checked Intranet Compatibility View. Just add in the OnInit event of your page this line (no meta or web.config customHeader need):

    Response.AddHeader("X-UA-Compatible", "IE=EmulateIE8");
    

提交回复
热议问题