Html IE8 是否支持 HTML5 和 CSS3?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5497587/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 07:42:46  来源:igfitidea点击:

Does IE8 support HTML5 and CSS3?

htmlcss

提问by srinivasa

I have requirement where the client needs their website to be developed in html5and css3. However it seems like ie6, ie7don't support HTML5 and CSS3. The client said that HTML5 and CSS3 is supported in ie8, but I need to know to which degree it is actually supported.

我要求客户需要在html5css3 中开发他们的网站。但是似乎ie6ie7不支持 HTML5 和 CSS3。客户说在ie8中支持HTML5和CSS3 ,但我需要知道它实际支持到什么程度。

回答by Quentin

  • No browser supports all of HTML 5 or CSS 3
  • Many browsers (including IE8) support some features added in HTML 5 or CSS 3
  • All browsers support some of HTML 5
  • All mainstream graphical browsers support some of CSS 3
  • 没有浏览器支持所有的 HTML 5 或 CSS 3
  • 许多浏览器(包括 IE8)支持在 HTML 5 或 CSS 3 中添加的一些功能
  • 所有浏览器都支持部分 HTML 5
  • 所有主流图形浏览器都支持部分 CSS 3

Worry about what you want to achieve, then look for the optimal way to achieve it. Don't start with the tools available and then try to find a use for them.

担心您想要实现的目标,然后寻找实现它的最佳方式。不要从可用的工具开始,然后尝试找到它们的用途。

Develop for the lowest common denominator and then progressively enhancefrom there.

为最小公分母发展,然后从那里逐步增强

回答by yojimbo87

Try to look at caniuseor html5testwebsites.

尝试查看caniusehtml5test网站。

回答by Boldewyn

IE8 supports nothingof HTML5, that wasn't part of HTML4, since it was developed, before HTML5 became even a W3C draft.

IE8支持任何HTML5的,这不是HTML4的一部分,因为它被开发之前,HTML5成为甚至W3C草案。

CSS3: There is the one or other property, that didn't make it in CSS 2.1, that IE8 actually supports, like text-wrap. However, it's not worth mentioning it. Especially all the goodies like box shadows and rounded corners don't exist in IE8.

CSS3:有一个或其他属性,在 CSS 2.1 中没有,IE8 实际上支持,比如text-wrap. 然而,这不值得一提。尤其是像框阴影和圆角这样的好东西在 IE8 中不存在。

Look at the links in yojimbo87's answer for more details on supported properties.

查看 yojimbo87 答案中的链接,了解有关支持属性的更多详细信息。

What is worse, is that even IE9 doesn't support that much of HTML5. They focused on canvas, video and audio and claim it now to be "HTML5 ready". But, for example, all the new form fields are completely missing, not speaking of lots of new JavaScript APIs.

更糟糕的是,即使是 IE9 也不支持那么多的 HTML5。他们专注于画布、视频和音频,并声称现在是“HTML5 就绪”。但是,例如,所有新的表单字段都完全缺失,更不用说许多新的 JavaScript API。

So, to put it in a nutshell, no, IE8 doesn't support HTML5. It can, however, display HTML5 documents, since the specification is written with fallback options for older browsers in mind.

所以,简而言之,不,IE8 不支持 HTML5。但是,它可以显示 HTML5 文档,因为该规范在编写时考虑了旧浏览器的后备选项。

回答by William

ie6 & ie7 have almost no support for html5 & css3.

ie6 和 ie7 几乎不支持 html5 和 css3。

Take a look at Quirksmode's compatibility table at: http://www.quirksmode.org/compatibility.html

查看 Quirksmode 的兼容性表:http://www.quirksmode.org/compatibility.html

If you need to develop in html5 I would recommend taking a look at Modernizr. It is a javascript library that tests the users's browser and modifies the html/css to suit it's capabilities.
http://www.modernizr.com/

如果您需要在 html5 中进行开发,我建议您查看 Modernizr。它是一个 javascript 库,用于测试用户的浏览器并修改 html/css 以适应其功能。
http://www.modernizr.com/

回答by Imran Khan

Actually IE-8 support HTML-4, its better to use chrome,firfox or sefari for HTML-5. More you can see here

实际上 IE-8 支持 HTML-4,对于 HTML-5,最好使用 chrome、firfox 或 sefari。你可以在这里看到更多

回答by harihb

HTML5 and CSS3 is not supported to a great extent on IE8. I would suggest you to use Firefox 4 from the 'Gecko' browser family or Google chrome or Safari (if you are on MacOSX) from the 'Webkit' browser family. They have great support for HTML5. Although I haven't tried it myself, I hear IE9 has excellent support for HTML5. But it runs only on Windows 7.

IE8 很大程度上不支持 HTML5 和 CSS3。我建议您使用“Gecko”浏览器系列中的 Firefox 4 或“Webkit”浏览器系列中的 Google chrome 或 Safari(如果您使用的是 MacOSX)。他们对 HTML5 有很好的支持。虽然我自己没有尝试过,但我听说 IE9 对 HTML5 的支持非常好。但它只能在 Windows 7 上运行。

Firefox or Chrome would be my choice though.

不过 Firefox 或 Chrome 将是我的选择。

回答by Bojangles

With current browser support of HTML5 and CSS3, your client must either a) be insane or b) not know what they're on about. While it is true that HTML5 and CSS3 are gaining support pretty quickly, the majority of browsers don't have good support for the more advanced features of the two techs, for example, <audio>and <video>aren't too widely supported. Neither is <canvas>. As for CSS3, quite a few bits of it are supported well, but IE users will have to do without.

由于当前浏览器支持 HTML5 和 CSS3,您的客户必须 a) 疯了或 b) 不知道他们在做什么。虽然这是事实,HTML5和CSS3是相当迅速获得支持,大多数浏览器都没有这两个科技股的更先进的功能良好的支持,例如,<audio><video>是不是太广泛支持。也不是<canvas>。至于CSS3,它的很多部分都得到了很好的支持,但IE用户将不得不这样做。

As an additional note, IE6 is still in very heavy use in China, so if you're targeting that market, stick with the older, better supported technologies.

另外要注意的是,IE6 在china仍然被大量使用,所以如果你的目标是这个市场,请坚持使用较旧的、支持更好的技术。

回答by Deele

The HTML5 specification is still in development phaze. You can try selling a client stuff, that is not yet developed. As with InternetExplorer, then no, it supports just about 5% of HTML5 current specs.

HTML5 规范仍处于开发阶段。您可以尝试销售尚未开发的客户产品。与 InternetExplorer 一样,不,它仅支持 HTML5 当前规范的 5%。