html5 canvas element and svg

2019-01-22 06:56发布

Why do we need the html5 canvas element, when the same can be achieved through embedded svg?

标签: html5 svg
8条回答
三岁会撩人
2楼-- · 2019-01-22 07:53

http://people.mozilla.com/~vladimir/xtech2006/ has nice comparison.

With canvas you don't have to deal with the DOM, which leads to faster and easier to write code. SVG is a mess as a specification, too...

查看更多
姐就是有狂的资本
3楼-- · 2019-01-22 07:53

an illustration: My blog engine (blogger) doesn't support SVG (it's not a XHTML document). I wrote a tool converting SVG to the canvas element: http://plindenbaum.blogspot.com/2009/11/tool-converting-svg-to-canvas_22.html

查看更多
登录 后发表回答