标签:
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(); });
标签:
原文地址:http://www.cnblogs.com/xupeiyu/p/5177035.html