Commit a6a0b3fe by doszhang

dos

parent b7f4f607
......@@ -80,7 +80,7 @@ let scrollTimer,
nowShowIndex = 1,
createPosterLock = false;
let fixHeight = 0;
let fixHeight = document.documentElement.clientHeight > 1238 ? document.documentElement.clientHeight : 1238;
const guardian = [
'事事顺意守',
......@@ -96,14 +96,9 @@ const guardian = [
]
$(document).ready(function () {
// $('.container').addClass('fix')
if ($('.page2').height() < document.documentElement.clientHeight) {
var scale = document.documentElement.clientHeight / $('.page').height();
$('.bg').css({
'height': '100%'
});
}
$('.bg').css({
'height': fixHeight + 'px'
});
$("input").on("blur", function () {
window.scroll(0, 0); //失焦后强制让页面归位
});
......@@ -161,7 +156,7 @@ function toscene(event) {
function toPage2() {
$('.wrap-inner').css({
height: '1238px',
height: fixHeight + 'px',
overflowX: 'scroll',
overflowY: 'hidden',
transform: 'translate(0,-50%)',
......
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