在使用html2canvas+jspdf导出时发现pdf右侧总是有灰色区域
在代码中加入scale: 2就能解决
html2Canvas(document.querySelector('#pdfDom'), {
allowTaint: true,
scale: 2,
background: "#F5F5F5"
}).then(function (canvas) {})
(目前还没找到原因,有知道为啥的吗T_T)
在使用html2canvas+jspdf导出时发现pdf右侧总是有灰色区域
在代码中加入scale: 2就能解决
html2Canvas(document.querySelector('#pdfDom'), {
allowTaint: true,
scale: 2,
background: "#F5F5F5"
}).then(function (canvas) {})
(目前还没找到原因,有知道为啥的吗T_T)