SVG in the Android Browser

2019-04-07 07:18发布

I know it's not supported natively, but are there any JS Shims that render into a canvas object or something that would allow me to render SVG on the native android browser? (Not Opera, etc since I'd like to avoid having the user need to install another browser)

1条回答
smile是对你的礼貌
2楼-- · 2019-04-07 07:49

I think what you want is this library:

http://code.google.com/p/canvg/

Basically, you would detect if the browser is capable of rendering svgs, and if it can't, you would render the SVG to canvas.

查看更多
登录 后发表回答