开发者

Multiple X-UA-Compatible meta tag in a single site

I know this isn't the best way to code a site, but this is an emergency and I need to figure this out asap.

I have a Wordpress site (completely irrelevant in this question, though), with two particular pages.

One page must use the IE's Quirks Mode, which I have successfully invoked using a ha开发者_运维知识库ck (adding a comment at the beginning, and also by using http-equiv="X-UA-Compatible" content="IE=5")

Another page must use IE 9 as its document type. If I visit one of these pages, IE invokes the correct document type. Problem begins when I go from one page to another; the new page (which is linked from the original page) KEEPS the previous document type.

Here's an example:

Page 1 has Quirks mode enabled. Page 2 has IE 9 as document type.

I goto page 1 by typing in the URL. IE renders it correctly using Quirks Mode Then I click a link leading me to page 2. IE renders page 2 still as Quirks mode, even though it is specified in the header to use IE 9

Thanks for your help :D


This may be helpful for IE issues.

<meta http-equiv="X-UA-Compatible" content="IE=5, IE=8, IE=9, IE=10" >


Edit: Don't put anything above the Doctype. That will throw IE into quirks mode. Drop the JS below the Doctype.

It's probably caching. How to prevent caching in Internet Explorer: http://support.microsoft.com/kb/234067

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜