- 博客(1)
- 收藏
- 关注
原创 react html2canvas 遇到的坑
html2canvas https://html2canvas.hertzen.com 1. svg 图片导出后样式不全 这是由于html2canvas 读取dom树时不会读取svg标签外面的样式。 1)简单粗暴的修改方法就是编辑svg将样式直接编辑在svg图片之内。 2)使用html2canvas onclone 回调在读取dom树后重新给svg写入样式。 这种方法可以参考这位大神的https://www.welefen.com/post/ht...
2020-07-01 20:57:09
1781
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人