This commit is contained in:
pplokijuhyg 2020-02-11 14:22:07 +08:00
parent 0ee7b8742d
commit 6678d2b8ce

View File

@ -29,7 +29,8 @@ console.log(canvas2.style.width)
}
})
```
html2canvas
html2canvas与canvas参考文档
### 重点介绍
context.scale(x 倍数, y 倍数); //画板放大指定倍数
canvas2.width = w * times * window.devicePixelRatio; //指定画板宽度
canvas2.height = h * times * window.devicePixelRatio; //指定画板宽度