Commit 42b6374d by doszhang

dos

parent 4c771caa
...@@ -57,7 +57,7 @@ $(document).ready(function () { ...@@ -57,7 +57,7 @@ $(document).ready(function () {
}); });
} }
$('.container').css('height', document.documentElement.clientHeight + 'px'); $('.container').css('height', document.documentElement.clientHeight + 'px');
var fixHeight = ($('.page').height() - document.documentElement.clientHeight) / 2; var fixHeight = Math.abs($('.page').height() - document.documentElement.clientHeight) / 2;
$('.logo').css('top', fixHeight + 30 + 'px'); $('.logo').css('top', fixHeight + 30 + 'px');
$("input").on("blur", function () { $("input").on("blur", function () {
window.scroll(0, 0); //失焦后强制让页面归位 window.scroll(0, 0); //失焦后强制让页面归位
...@@ -147,7 +147,6 @@ $(document).ready(function () { ...@@ -147,7 +147,6 @@ $(document).ready(function () {
var left = (img.width - ctx2.measureText(text).width) / 2; var left = (img.width - ctx2.measureText(text).width) / 2;
ctx2.shadowBlur = 0; ctx2.shadowBlur = 0;
ctx2.fillText(text, left, top * 2); ctx2.fillText(text, left, top * 2);
console.log(123)
$('.page:visible').find('.showBox').show().html('<img src="' + canvas2.toDataURL('image/png') + '">'); $('.page:visible').find('.showBox').show().html('<img src="' + canvas2.toDataURL('image/png') + '">');
}); });
}) })
......
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 sign in to comment