Commit a6a0b3fe by doszhang

dos

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