【问题标题】:sencha touch ios8.1 iframe can't scrollingsencha touch ios8.1 iframe不能滚动
【发布时间】:2014-10-27 08:50:46
【问题描述】:

1.sencha touch 2.3.1

2.我用iframe在IOS7.x上运行良好

3.升级到IOS8.1时,iframe无法滚动

4.IOS8.1在safari中运行良好,但是发送到主屏幕再打开就不行了。

为什么?是一个错误?

我的 iframe 代码如下:

<div style="-webkit-overflow-scrolling:touch;background:url(resources/images/loading.gif) center center no-repeat; height:500px; overflow: auto;">
<iframe src="/abc.html" width="100%" height="100%" frameborder="0" >
</iframe>
</div>

【问题讨论】:

    标签: iframe scroll sencha-touch ios8.1


    【解决方案1】:

    尝试设置固定高度。有用吗?

    另外,尝试添加:

    overflow-y: scroll; 
    

    到你的框架。

    【讨论】:

      【解决方案2】:

      这是 8.1 的一个已知问题。我正在经历同样的事情。令人惊讶的是,iframe 滚动在 chrome 中运行良好,但 Safari 存在问题。

      http://www.applevis.com/blog/apple-ios-news/accessibility-fixes-and-improvements-ios-81

      【讨论】:

        猜你喜欢
        • 2014-04-04
        • 2013-12-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多