This commit is contained in:
pplokijuhyg 2020-02-11 14:18:07 +08:00
parent df49674cf5
commit cb2da60102

View File

@ -35,7 +35,8 @@ console.log(canvas2.style.width)
```
html2canvas参数参考官网 重点介绍canvas那一部分
context.scale(x 倍数, y 倍数); //画板放大指定倍数
***
重点
canvas2.width = w * times * window.devicePixelRatio; //指定画板宽度
canvas2.height = h * times * window.devicePixelRatio; //指定画板宽度