Commit 96248d12 authored by zhangyanni's avatar zhangyanni

试一下分享好友

parent d2a3c481
......@@ -132,22 +132,18 @@
// 图片宽度
var h = parseInt(window.getComputedStyle(img).height);
// 声明画布宽高
// if(publicFunc.isWhichBrowe().android){
// canvas.width = w*3;
// canvas.height = h*3;
// canvas.style.width = w*3 + "px";
// canvas.style.height = h*3 + "px";
// }
// else if(publicFunc.isWhichBrowe().ios){
// canvas.width = w*2;
// canvas.height = h*2;
// canvas.style.width = w*2 + "px";
// canvas.style.height = h*2 + "px";
// }
canvas.width = w;
canvas.height = h;
canvas.style.width = w + "px";
canvas.style.height = h + "px";
if(publicFunc.isWhichBrowe().android){
canvas.width = w*3;
canvas.height = h*3;
canvas.style.width = w*3 + "px";
canvas.style.height = h*3 + "px";
}
else if(publicFunc.isWhichBrowe().ios){
canvas.width = w*2;
canvas.height = h*2;
canvas.style.width = w*2 + "px";
canvas.style.height = h*2 + "px";
}
html2canvas(img, {
canvas: canvas,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment