Commit b7f4f607 by doszhang

dos

parent bb0fa145
......@@ -97,15 +97,12 @@ const guardian = [
$(document).ready(function () {
// $('.container').addClass('fix')
// if ($('.page2').height() < document.documentElement.clientHeight) {
// var scale = document.documentElement.clientHeight / $('.page').height();
// $('.bg').css({
// 'transform': 'scale(1,' + scale + ')'
// });
// } else {
// fixHeight = Math.abs($('.page').height() - document.documentElement.clientHeight) / 2;
// }
// $('.container').css('height', document.documentElement.clientHeight + 'px');
if ($('.page2').height() < document.documentElement.clientHeight) {
var scale = document.documentElement.clientHeight / $('.page').height();
$('.bg').css({
'height': '100%'
});
}
$("input").on("blur", function () {
window.scroll(0, 0); //失焦后强制让页面归位
......
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