Вопрос

On one of my sites, IE 8 is displaying the compatibility view button despite the presence of the X-UA-Compatible header. In IE 9, adding this header removes the button and sets the correct rendering mode, but why doesn't it do the same under IE 8? If the user clicks the button in IE8, the site rendering breaks on several pages so how can I remove this button to stop them clicking it?

The site in question is www.venuefinder.com

Это было полезно?

Решение

your page is including the following meta tag:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />

Thus IE9 hides the button and IE8 doesn't understand it (since IE9 didn't exist when IE8 was shipping)

To ensure both IE8 and IE9 (and IE10) don't show the button you'd likely want to adjust your page to include a modern DOCTYPE

<!doctype html>

and set the meta tag to edge

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top