Commit 71e2d440 by doszhang

dos

parent 39de6fc8
...@@ -130,11 +130,14 @@ function initPage() { ...@@ -130,11 +130,14 @@ function initPage() {
bottom: transformTop bottom: transformTop
}); });
let displacement = parseFloat(transformTop); const displacement = parseFloat(transformTop);
console.log(displacement); console.log(displacement);
if (displacement > 0) { if (displacement > 0) {
let height = 1238 + displacement; const scale = document.documentElement.clientHeight / $('.page').height();
$('.wrap-inner,.page').css('height', height + 'px'); $('.page').css({
'transform': 'translate(-50%,-50%) scale(1,' + scale + ')'
});
} }
// const headerHeight = 313; // const headerHeight = 313;
// const logoHeight = parseFloat($('.logo').css('height')); // const logoHeight = parseFloat($('.logo').css('height'));
......
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