Android不支持web页滚动
来源:互联网 发布:杭州橙群网络怎么样 编辑:程序博客网 时间:2024/05/29 13:38
Android不支持web页滚动,以下答案来源网络其他人的回答,德问网上有。
测试以下方法可行。
function noBarsOnTouchScreen(arg){ var elem, tx, ty; if('ontouchstart' in document.documentElement ) { if (elem = document.getElementById(arg)) { elem.style.overflow = 'hidden'; elem.ontouchstart = ts; elem.ontouchmove = tm; } } function ts( e ) { var tch; if( e.touches.length == 1 ) { e.stopPropagation(); tch = e.touches[ 0 ]; tx = tch.pageX; ty = tch.pageY; } } function tm( e ) { var tch; if( e.touches.length == 1 ) { e.preventDefault(); e.stopPropagation(); tch = e.touches[ 0 ]; this.scrollTop += ty - tch.pageY; ty = tch.pageY; } }}//调用的时候:noBarsOnTouchScreen(divId);
0 0
- Android不支持web页滚动
- css自定义滚动条样式-不支持FF
- tomcat版本不支持web项目
- Android原生浏览器不支持`
- android studio 不支持HttpClient
- android 滚动
- android滚动
- [Web]滚动控件使用
- web自定义滚动条
- CSS滚动条颜色(IE支持,火狐不支持)
- 前端框架layer ios不支持弹出页面滚动条
- android控制滚动条滚动
- PB11 WEB程序所不支持的东东
- Microsoft web broswer不支持此接口
- 提示:microsoft web broswer不支持此接口
- UniWebView ,unity项目显示web,不支持pc
- android studio 不支持 .9图片?
- web滚动条设计思路
- http://bbs.csdn.net/topics/390330900 地址备忘
- 用户空间的映射
- coreseek配置
- 77. Lotus Notes中编程发送邮件(三)之XPages中用Java发送邮件
- [BBS] Post.jsp 06
- Android不支持web页滚动
- Field requires API level 5 (current min is 1) 问题的解决
- Disruptor为什么会比BlockingQueue更快?
- 如何使用 CSS3 伪类
- Javascript继承实现方式
- 全面介绍ASP.NET和JSP技术
- 跟我一起写 Makefile(七)
- SQLite3常用命令
- Best Practices for Speeding Up Your Web Site