Javascript Canvas 和 HTML5:支持的浏览器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2676994/
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
Canvas and HTML5: Supported Browsers?
提问by Shripad Krishna
I am looking at using HTML5 Canvas element for my upcoming project. I want to know what all major browsers (including the versions!, cos i know that the latest builds do support canvas) support the Canvas tag. I don't give a damn about IE. So don't bother reporting IE. :) In this tutorial Drawing shapes - MDC, the quadraticCurveTo section says:
我正在考虑在我即将开展的项目中使用 HTML5 Canvas 元素。我想知道所有主要浏览器(包括版本!,因为我知道最新版本确实支持画布)支持 Canvas 标签。我不在乎 IE。所以不要打扰报告IE。:) 在本教程绘制形状 - MDC 中,quadraticCurveTo 部分说:
quadraticCurveTo(cp1x, cp1y, x, y) // BROKEN in Firefox 1.5 (see work around below)
quadraticCurveTo(cp1x, cp1y, x, y) // 在 Firefox 1.5 中损坏(参见下面的解决方法)
Does that mean that Canvas is supported on Firefox 1.5 and above too?
这是否意味着 Firefox 1.5 及更高版本也支持 Canvas?
回答by brainjam
caniuse.comlists browser support for many different features, including canvas.
caniuse.com列出了浏览器对许多不同功能的支持,包括画布。
Specifically, browser support for canvas is listed at caniuse.com/#search=canvas.
具体来说,caniuse.com/#search=canvas 列出了浏览器对画布的支持。
回答by AlfonsoML
It's not only about "supporting Canvas", but about the bugs that each implementation has about this and missing methods that have been added since the initial release. So even if one version of Firefox does add the basic Canvas support, it might have some bugs that make it impossible to use it in your application.
这不仅是关于“支持画布”,而是关于每个实现的错误以及自初始版本以来添加的缺失方法。因此,即使某个版本的 Firefox 确实添加了基本的 Canvas 支持,它也可能存在一些错误,使其无法在您的应用程序中使用它。
In that case, you might need to check the current versions and then go back as far as you want to support to verify if they work as expected.
在这种情况下,您可能需要检查当前版本,然后返回到您想要支持的范围以验证它们是否按预期工作。

