From d8d998e698b36200cdc4e90d49c23064d3339722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Wed, 6 Oct 2021 01:31:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E8=83=8C=E6=99=AF=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E9=80=8F=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index faa60d35..d1b66214 100644 --- a/script.js +++ b/script.js @@ -1436,7 +1436,7 @@ function capture() { titleBox.classList.remove("edit"); detailBox.classList.remove("edit"); const downLink = controlBox.querySelector(".down-capture"); - html2canvas(formationBox).then(canvas => { + html2canvas(formationBox, {backgroundColor: null}).then(canvas => { canvas.toBlob(function(blob) { window.URL.revokeObjectURL(downLink.href); downLink.href = URL.createObjectURL(blob);