IE8 Compatibility View Button is enabled even when IE=EmulateIE7

前端 未结 2 1384
情深已故
情深已故 2020-12-29 16:46

For our web application, we are sending the X-UA-Compatible -> IE=EmulateIE7 for all the pages. However, the Compatibility View Button next to the Refresh button, is still d

2条回答
  •  -上瘾入骨i
    2020-12-29 17:25

    I had an issue on our workwear site whereby, we initally had to use the Meta EmulateIE7 to overcome CSS issues when IE8 was first released. We later rectified the problem and added the meta tag X-UA-Compatible IE=8

    What we noticed is, even when clearing the browsers cache IE8 still retained the state of the compatibility button set by the user. It was important for us to overcome this because it was causing scripting issues when running in compatibility mode.

    We solved the problem by having X-UA-Compatible IE=8 in the head of all pages and also adding it to IIS as a HTTP Header. The compatibility button no longer shows on visitors browsers =)

    Hope this helps!

提交回复
热议问题