哪些浏览器支持 HTML 5 / CSS3

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3617200/
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 04:20:36  来源:igfitidea点击:

What browsers support HTML 5 / CSS3

htmlbrowser

提问by AJM

Was reading that IE9 will support HTML 5/ CSS 3

正在阅读 IE9 将支持 HTML 5/ CSS 3

What other browsers support this?

还有哪些浏览器支持这个?

回答by Matt Gibson

There's an excellent graphical summary of browser support for the various features here:

这里有一个出色的浏览器对各种功能支持的图形摘要:

http://html5readiness.com/

http://html5readiness.com/

...which uses data from When Can I Use...

...使用来自何时可以使用的数据...

回答by invalidred

Also There is a way to support HTML5 elements on IE8 and below using the "shiv".

还有一种方法可以使用“shiv”在 IE8 及以下版本上支持 HTML5 元素。

You can read all about it here:

您可以在此处阅读所有相关信息:

But to sum it up, new HTML5 elements such a <section>, <article>, <aside>etc... were not a part of the original HTML4 spec which older browsers such as IE8 conform to. However there is a way for older browsers to recognize HTML5 elements using the code snippet below:

但概括起来,新的HTML5元素这样的<section><article><aside>等...是不是原来的HTML4规范其旧的浏览器,如IE8符合的一部分。但是,旧版浏览器可以使用以下代码段识别 HTML5 元素:

"abbr article aside audio bdi canvas data datalist details figcaption figure "+
"footer header hgroup main mark meter nav output progress section " +
"summary template time video"
.replace(/w+/g, function(a){ document.createElement(a) });

Remember to execute this immediately on page load.

请记住在页面加载时立即执行此操作。