How to disable Compatibility View in IE

前端 未结 8 2020
独厮守ぢ
独厮守ぢ 2020-12-04 07:24

I am wondering how do you stop people who are using IE 8 from going to Compatibility mode?



        
8条回答
  •  渐次进展
    2020-12-04 07:47

    If you're using ASP.NET MVC, I found Response.AddHeader("X-UA-Compatible", "IE=edge,chrome=1") in a code block in _Layout to work quite well:

    @Code
        Response.AddHeader("X-UA-Compatible", "IE=edge,chrome=1")
    End Code
    
    everything else
    

提交回复
热议问题