Skip to content

Commit

Permalink
修改二维码图片大小
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene8028 committed Aug 5, 2023
1 parent 3ba26b3 commit 268735d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ function show(val) {
} else if (val == "alipay") {
$("#alipay-name").css({ display: "inline-block" });
var imgSrc = urls.alipay;
var img = $('<img>').attr('src', imgSrc).css({margin: "auto"});
var img = $('<img>').attr('src', imgSrc).css({margin: "auto", "max-width": "240px"});
$("#qrcode").html(img);
} else if (val == "wechat") {
$("#wechat-name").css({ display: "inline-block" });
var imgSrc = urls.wechat;
var img = $('<img>').attr('src', imgSrc).css({margin: "auto"});
var img = $('<img>').attr('src', imgSrc).css({margin: "auto", "max-width": "240px"});
$("#qrcode").html(img);
}

Expand Down

0 comments on commit 268735d

Please sign in to comment.