ie8 中的 div 关闭语法

发布于 2024-08-11 01:25:06 字数 182 浏览 3 评论 0原文

我刚刚发现使用

而不是
会完全破坏 IE8 中的页面。尽管我只在一个地方有空标签语法,但一半页面甚至没有呈现。

这是 IE8 中的错误还是正确的标准实现?如果这是正确的行为并且微软故意如此严格,我感到很惊讶。

I've just discovered that using <div /> instead of <div></div> completely destroys my page in IE8. Even though I only had the empty tag syntax in one single place, half the page didn't even render.

Is this a bug in IE8 or is this correct standards implementation? I'm astounded if this is correct behaviour and Microsoft have deliberately been this strict.

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

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

发布评论

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

评论(1

用心笑 2024-08-18 01:25:06

在 HTML 4 中,Div 标签结束标签是必需的。

http://www.w3.org/TR/ html401/struct/global.html#h-7.5.4

检查你的标准:)

In HTML 4 the Div tags closing tag is required.

http://www.w3.org/TR/html401/struct/global.html#h-7.5.4

Check your standards :)

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