IE6 支持任何 HTML5 元素吗?
IE6 支持任何 HTML5 元素吗?
<!DOCTYPE HTML>
<header>
<section>
<header>
<nav>
<canvas>
<video>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
IE6 支持任何 HTML5 元素吗?
<!DOCTYPE HTML>
<header>
<section>
<header>
<nav>
<canvas>
<video>
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(10)
它几乎不支持 HTML4...哈:)
不,它没有一些花哨的 Javascript HTML5 模拟脚本类型的东西。
编辑
例如这个。
It barely supports HTML4.... ha :)
No it doesn't without some fancy Javascript HTML5 emulating script type-of-thing.
Edit
Such as this one.
这取决于“HTML5 元素”的含义。由于 Web 上常用的大多数标签都包含在 HTML5 中,是的,它支持绝大多数 HTML5。
如果你指的是 HTML5 中引入的以前从未使用过的新元素,那么不,它不支持其中任何一个,因为当 IE6 的 HTML 解析器创建时,HTML 4 是最先进的。
It depends on what you mean by "HTML5 elements." In that most tags commonly used on the Web are included as part of HTML5, yes, it supports the vast majority of HTML5.
If you mean new elements introduced in HTML5 that had never been used before, no, it supports none of them, because HTML 4 was cutting-edge when IE6's HTML parser was created.
不,它没有,但您仍然可以使用 HTML 5 元素,并通过使用 Modernizr http://www.css 设置它们的样式。 Modernizr.com/
这还将向 html 元素添加类,描述当前浏览器中可用的功能。
No it doesn't, but you can still use HTML 5 elements and style them using CSS by using Modernizr http://www.modernizr.com/
This will also add classes to the html element describing what functionality is available in the current browser.
答案是否。 =)
http://www.quirksmode.org/dom/html5.html
The answer is no. =)
http://www.quirksmode.org/dom/html5.html
它的作用与所有其他版本的 IE 的作用相同。 9 执行此操作(如果您使用 html5 shiv 脚本)。我的网站采用 HTML5 语言,在 IE6 中运行良好,尽管略有不同。当然,如果你关闭 JavaScript,它就不会工作,但如果你使用 IE6 并且你关闭了 JavaScript,恐怕我不会那么担心你,因为你是少数。
It does in the same way that all other versions of IE < 9 do, if you use the html5 shiv script. My site is in HTML5 and works fine in IE6, althoguh slightly differently. Sure if you turn off JavaScript it won't work, but if you're using IE6 and you have JavaScript turned off I'm afraid I'm not that worried about you as you're such a minority.
实际上,(惊讶,惊讶!) IE5。 5 实现了这个 ruby 标签 元素,该元素最初在 HTML5 规范,并且没有任何一处或对 HTML4 规范,。
哇微软!您确实知道如何浪费资源创建一个不起眼的 HTML5 标签,而不是修复损坏的盒子模型,更不用说尝试更好地支持 HTML4,更不用说尝试修复数十万个安全漏洞了。只是哇!
Actually, (surprise, surprise!) IE5.5 implemented this ruby tag element that was originally defined in the HTML5 specification, and not one peep or reference to any ruby element in the HTML4 specification,.
Wow Microsoft! You really know how to waste your resources creating an obscure HTML5 tag instead of fixing the broken box model, let alone trying to better support even HTML4, let alone trying to fix the hundreds of thousands of security breaches. Just wow!
哈哈是的没错。 IE6 已经给 HTML 4 和 CSS 带来了足够的痛苦,更不用说 HTML 5 了。如果你想使用 HTML5,但由于客户端(我工作的地方他们经常使用 IE5)而必须使你的网站与 IE6 兼容,这真是太遗憾了。 ..我什至不想去那里)。
Ha ha yeah right. IE6 gives enough grief with HTML 4 as well as CSS, let alone HTML 5. Which is a shame if you are wanting to use HTML5 but have to make your website compatible with IE6 due to the client (where I work they often use IE5...I don't even want to go there).
不。只是因为 15 个字符的限制,让我补充一下,如果您想使用 HTML 5,我不建议您担心 IE6 兼容性。为了让 IE6 上的内容看起来与任何现代浏览器上的一样,您需要使用变通方法和技巧等,但不值得花时间。
HTML+CSS 的伟大之处在于它可以优雅地降级。练习一下,您就可以创建一个在现代浏览器上非常棒的网站,并且在 IE 6 上看起来不错,功能齐全,并且不会给人“损坏”或“丢失”任何东西的感觉,即使它不会拥有其他人看到的奇特的东西。
No. Only because of the 15 character limit, let me add, if you want to use HTML 5 I would not recommend worrying about IE6 compatibility. The workarounds and hacks etc. you need to use to make things look the same on IE6 as they would on any modern browser are not worth the time.
The great thing about HTML+CSS is that it can degrade gracefully. Practice on that, and you can create a site that is wonderful on a modern browser, and on IE 6 looks nice, functions, and does not give the appearance of being "broken" or "missing" anything, even though it won't have the fancy stuff other people are seeing.
你可以使用 javascript 使用假标签:使用
JavaScript 创建新元素
在 jQuery 中工作很酷,但事实证明,JavaScript 有一个内置函数来处理创建新元素:
you can use fake tags using javascript:
Creating the new elements with JavaScript
Working in jQuery is cool and all, but as it turns out, there is a built in function to JavaScript to deal with creating new elements:
Internet Explorer 6 不支持 header / section / nav / canvas / video 标签( Internet Explorer 中的 header / section / nav / canvas / video 标签支持9 及更多)。
信用链接:一个,两个 , 三个 、 四个 和 五。
Internet Explorer 6 not support header / section / nav / canvas / video tag ( header / section / nav / canvas / video tag support in Internet Explorer 9 and more ).
Credit link : one , two , three , four and five.