您的位置:首页 > 其它

有手机输入键盘时切换横竖屏高度变化的问题

2016-02-02 11:18 357 查看
function resetIosScreen() {
if ( window.orientation == 90 || window.orientation == -90 ) {

userHeight = window.screen.width;

} else {

userHeight = window.screen.height;

}

$(".before").height(userHeight - 70);

$(".prompt").height(userHeight);

}

if (/iPhone/.test(navigator.userAgent)) {

resetIosScreen();

}

$(window).on("orientationchange",function(){

resetIosScreen();

});


  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: