安卓手机访问h5页面的input,弹出软键盘遮挡input
2016-03-22 09:33
706 查看
var bindAndroidScroll =function(that){ // that 输入框 if(myApp.device.android || (myApp.device.ios && myApp.device.osVersion.split('.')[0] * 1 === 7)){// ios7也有类似bug setTimeout(function(){ that.scrollIntoViewIfNeeded(); } },500);// 弹出键盘后0.5秒 再隐藏,有的安卓手机反应慢 }
$('#inputid').on('click',function(e){//绑定click bindAndroidScroll(this); });
相关文章推荐
- HTML5- Canvas入门(一)
- 【HTML5】H5的新标签简介
- 再次推荐一款逼真的HTML5下雪效果
- 用HTML5新标签构建页面
- HTML5常用标签
- HTML5之video元素
- HTML5与CSS3基础教程第八版学习笔记11~15章
- H5 - HTML5新增标签
- HTML5 页面跳转和参数传递
- HTML5 元素
- html5 postMessage解决跨域、跨窗口消息传递
- html5中插入视频和音频
- 利用H5本地存储localStorage、sessionStorage
- HTML5单页面手势滑屏切换原理
- HTML5本地存储
- html5之meta charset网页字符编码简写
- ajax与HTML5 history pushState/replaceState实例
- h5 动画
- html5链接直接下载文件 不是直接打开 如pdf, doc 等
- html和html5的区别