在iPhone Mobile Safari中使用单指滚动内部内容(div / iframes) [英] Single finger Scrolling for inner contents (div/iframes) in iPhone Mobile Safari

查看:118
本文介绍了在iPhone Mobile Safari中使用单指滚动内部内容(div / iframes)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Sub:iPhone mobile safari网络应用程序

Sub: iPhone mobile safari web application

我需要保持网页的某些部分可见,即使用户滚动。 CSS属性位置:fixed不能按预期工作。使用overflow:auto属性on或需要双指滚动,这不是我想要的。

I need to keep some parts of a web page visible even when a user scrolls. The CSS property position:fixed does not work as expected. Using the overflow:auto property on or needs two-finger scrolling which is not what I want.

有什么办法提供单指滚动的内部'div'在CSS中(iOS 5):

Is there any way to provide single finger scrolling on the inner 'div' or 'iframes' contents using javascript or iphone safari Touch API (touchMove event)?

推荐答案

-webkit-overflow-scrolling: touch;

这篇关于在iPhone Mobile Safari中使用单指滚动内部内容(div / iframes)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆