Html2canvas 解决transform 解决 使用和printjs打印组件时 超出高度出现空白页 Printjs打印内容超出csdn博客
经过多次调试及搜索相关资料,终于发现是因为弹窗使用了 transform 属性。 后来去掉 transform 使用 flex 解决了。 这个问题也是显而易见的,图片还没加载好就截图,肯定会. Discover the different features supported by html2canvas 探索被html2canvas支持的不同属性. 解决办法:在截图之前,通过 javascript 控制滚动条至顶部,确保所有内容都在视口内。 可以使用 window.scrollto(0, 0) 方法来实现。 // 处理截图后的 canvas.
解决html2canvas相关问题(模糊,跨域,偏移,兼容)_html2canvas 不清晰CSDN博客

解决html2canvas相关问题(模糊,跨域,偏移,兼容)_html2canvas 不清晰CSDN博客
CSS transform scale(VALUE); · Issue 2851 · niklasvh/html2canvas · GitHub

vue把页面转换成图片导出方式(html2canvas导出不全问题)_vue.js_脚本之家

解决 使用html2canvas和printjs打印组件时, 超出高度出现空白页_printjs打印内容超出CSDN博客

jsPDF + html2canvas A4分页截断 完美解决方案(含代码 + 案例)_jspdf导出pdf分页切断CSDN博客