ie8 中的 div 关闭语法
我刚刚发现使用
而不是
会完全破坏 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 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 :)