使用 DOCTYPE HTML 4.01 过渡到 IE8

发布于 2024-08-28 09:47:21 字数 323 浏览 4 评论 0原文

我们在所有页面的 HTML 代码第一行中使用:

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

我们正在转向新的 IE8,我们希望保持 DOCTYPE 不变,是否有任何我们最好注意的建议/警告?

我的意思是:“小心 CSS min-width 在 IE8 过渡中不再起作用,小心它会搞乱页面,等等。”

We use in all our pages in the 1st line 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."

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风吹雨成花 2024-09-04 09:47:21

如果您的页面可以在 IE7 中运行并且可以在更符合标准的浏览器中运行,那么它很可能也可以在 IE8 中运行。 IE8更接近标准合规性;没有太多显着的回归。

如果您的页面仅在 IE7 中工作,或者通过使用依赖于 IE7 错误的不同代码路径在 IE7(相对于其他浏览器)中工作,您可能需要做更多工作。同时,您可以使用 header/meta X-UA-Compatible: EmulateIE7 告诉 IE8 的行为与 IE7 类似。

IE7/IE8 差异的详细信息 位于IE博客

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文