Force IE compatibility mode off using tags

后端 未结 12 1514
广开言路
广开言路 2020-11-22 07:56

I am doing work for a client who forces compatibility mode on all intranet sites. I was wondering if there is a tag I can put into my HTML that forces compatibility mode off

12条回答
  •  独厮守ぢ
    2020-11-22 08:26

    If you have access to the server, the most reliable way of doing this is to do it on the server itself, in IIS. Go in to IIS HTTP Response Headers. Add Name: X-UA-Compatible
    Value: IE=edge This will override your browser and your code.

提交回复
热议问题