html2canvas 使用报错 : DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.

 

由于标签中 div  的 宽度 小于1像素 报错, 解决方法可以改变对应div的 宽度,使其最小值不要小于 1像素。

 

posted on 2020-12-18 09:59  刘飞fei  阅读(4748)  评论(1编辑  收藏  举报

导航