Commit ac8c992b by doszhang

dos

parent 10449354
...@@ -163,8 +163,7 @@ function initPage() { ...@@ -163,8 +163,7 @@ function initPage() {
const inputHeight = parseFloat($('.input-wrapper').css('height')); const inputHeight = parseFloat($('.input-wrapper').css('height'));
const transformTop = parseFloat(getTranslateDistance()); const transformTop = parseFloat(getTranslateDistance());
let spacing = (headerHeight - transformTop - logoHeight - inputHeight) / 3; let spacing = (headerHeight - transformTop - logoHeight - inputHeight - 27) / 2;
alert(spacing)
$('.logo').css('top', transformTop + spacing + 'px'); $('.logo').css('top', transformTop + spacing + 'px');
$('.input-wrapper').css('top', transformTop + (spacing * 2 + logoHeight) + 'px'); $('.input-wrapper').css('top', transformTop + (spacing * 2 + logoHeight) + 'px');
......
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