有手机输入键盘时切换横竖屏高度变化的问题
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(); });
相关文章推荐
- busybox microcom
- 五子棋AI算法第一篇-我对谷歌Alphago的看法
- 红包快手-秒抢微信红包
- N-Gram模型
- poi excel 的HYPERLINK(link_location,friendly_name)
- 杂技之sharpdevelop调试aps.net
- Android 软键盘 弹出,默认隐藏,强制隐藏,自动变大写等
- j2ee基础知识问题与答案,面试经常问到
- 解决ArchLinux中文输入法无法切换的问题
- 【年总结】 2016——再次起航
- globs的匹配规则
- Android ANR产生原因及解决办法
- android基本架构
- VSS转SVN
- SQL SERVER修改函数名容易引发的问题分析
- VS编译64位汇编时报错:error C4235: 使用了非标准扩展: 不支持在此结构上使用“_asm”关键字
- Perl 监控 tomcat,可以安心回家过年了
- 计算机网络
- FMDB详解
- 内核调试神器SystemTap