动态SVG网站图示? [英] Dynamic svg favicon?
本文介绍了动态SVG网站图示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个图标作为SVG.我想将其作为图标图标使用不同的颜色.
I have an icon as SVG. I want to have it in different colors as favicon.
由于没有用于SVG元素的toDataUrl(),因此我看不到不涉及服务器的解决方案.
Since there isn't any toDataUrl() for SVG elements I don't see a solution that doesn't involve a server.
对客户端解决方案有什么想法吗?
Any idea for a client side solution?
推荐答案
fabric.js 支持将SVG元素渲染为 canvas
元素.
fabric.js supports rendering of SVG elements into canvas
elements.
这篇关于动态SVG网站图示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文