开发者

Going to IE8 with DOCTYPE HTML 4.01 Transitional

We use in all our pages in the 1st lin开发者_StackOverflow中文版e of our HTML code the:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

We are moving on to the new IE8 and we would like to keep the DOCTYPE unchanged, is there any suggestions/warnings we better be aware of?

I mean like: "Be careful that CSS min-width is not working anymore in IE8 transitional, be careful that it will screw up page in this and that, etc."


If your page works in IE7 and it works in the more standards-compliant browsers, chances are it'll work in IE8. IE8 gets closer to standards compliance; there aren't many significant regressions.

If your page only works in IE7, or works in IE7 (vs. the other browsers) by using a different code path that relies on IE7 bugs, you may have more work to do. You can in the meantime tell IE8 to behave similarly to IE7 by using the header/meta X-UA-Compatible: EmulateIE7.

Gory details of IE7/IE8 differences at IEBlog.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜