Browse Source

将背景改为透明

tags/v24.0
枫谷剑仙 4 years ago
parent
commit
d8d998e698
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      script.js

+ 1
- 1
script.js View File

@@ -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);


Loading…
Cancel
Save