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像素。

原文地址:https://www.cnblogs.com/weblff/p/14153500.html