diff --git a/前端/前端通过页面(dom)生成图片并下载保存.md b/前端/前端通过页面(dom)生成图片并下载保存.md index 525763c..7692ef3 100644 --- a/前端/前端通过页面(dom)生成图片并下载保存.md +++ b/前端/前端通过页面(dom)生成图片并下载保存.md @@ -40,9 +40,7 @@ $(".download").click(() => { useCORS: true, background: null, windowWidth:document.body.scrollWidth, - windowHeight:document.body.scrollHeight, - x:(document.body.scrollWidth - width)/2, - y:0 + windowHeight:document.body.scrollHeight }).then(canvas => { let imgUrl = Canvas2Image.convertToPNG(canvas,$("#app").width(),$("#app").height()) imgUrl = $(imgUrl).attr('src')