Skip to content

Commit

Permalink
fix:细节处理
Browse files Browse the repository at this point in the history
  • Loading branch information
叶言 committed Dec 1, 2015
1 parent 8d13528 commit 1cec3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ extend(qrcode.prototype,{
canvas.style.width = tileW * count + 'px';
canvas.style.height = tileH * count + 'px';
var s = [];
s.push(`<span class="${options.canvasClass}" style="width: ${tileW * count}px;height: ${tileW * count}px;
s.push(`<span class="${options.canvasClass}" style="width: ${tileW * count}px;height: ${tileH * count}px;
padding: ${(size-tileW * count)/2}px; display: inline-block">`);
s.push('</span>');
var span = document.createElement('span');
Expand Down

0 comments on commit 1cec3c1

Please sign in to comment.