iFrame滚动不适用于iOS设备 [英] iFrame scrolling not working on iOS devices

查看:104
本文介绍了iFrame滚动不适用于iOS设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的响应站点由于iFrame而具有issue of scrolling.

I have responsive site which have an issue of scrolling because of iFrame.

# Problem

> Open site in iPhone in any browser
> list of images and video display
> Try to scroll down then it's work while images but when video then scrolling not worked because of video display in iFrame and iOS device not allow to scroll on `iFrame`.

iOS设备是否有CSS技巧或任何特定问题?

Is there any CSS trick or any particular issue with iOS devices?

它是not work in iPhone / iPad.

NOTE: I do not want to scroll into iFrame but page scroll not working when touch on iFrame and try to page down. Got it?

让我知道是否有人解决此问题或任何技巧.

Let me know if any one sort this issue or any trick.

谢谢

推荐答案

尝试

.iframe-container {
    overflow:scroll !important; -webkit-overflow-scrolling:touch !important;
}

这篇关于iFrame滚动不适用于iOS设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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