html2canvas绘图空白问题 panshihao 2020-11-20 1,574 阅读1分钟 html2canvas(document.getElementById("box"),{ x: 0, // 裁剪画布x坐标 y: document.getElementById("box").offsetTop //裁剪画布y坐标,之前用的window.pageYOffset不行 }).then(function(canvas) { // xxxxxx })