IFRAME和iPad上的Safari,用户如何滚动内容? [英] IFRAMEs and the Safari on the iPad, how can the user scroll the content?

查看:100
本文介绍了IFRAME和iPad上的Safari,用户如何滚动内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据Apple iOS的口头禅,应该可以通过用两根手指拖动IFRAME来滚动IFRAME的内容。不幸的是,在iPad上运行iOS的最新版本我还没有找到一个带有使用此方法滚动的IFRAME的网站 - 也没有滚动条出现。



有谁知道用户如何使用移动Safari滚动IFRAME的内容?

解决方案

iOS 5添加了以下样式,可以被添加到父div以便滚动工作。

-webkit-overflow-scrolling:touch


According to the Apple iOS mantra it should be possible to scroll the contents of an IFRAME by dragging it with two fingers. Unfortunately running the latest version of iOS on the iPad I have yet to find a single website with an IFRAME that scrolls using this method - no scrollbars appear either.

Does anyone know how a user is supposed to scroll the contents of an IFRAME with the mobile Safari?

解决方案

iOS 5 added the following style that can be added to the parent div so that scrolling works.

-webkit-overflow-scrolling:touch

这篇关于IFRAME和iPad上的Safari,用户如何滚动内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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