【问题标题】:How to make iframe-s scrollable on iOS (iPhone 7)如何在 iOS (iPhone 7) 上使 iframe-s 可滚动
【发布时间】:2017-06-27 12:12:08
【问题描述】:

在 iOS 上测试时,iframe 滚动不起作用。 Scroll 适用于 Android 设备。

【问题讨论】:

    标签: ios iframe scroll


    【解决方案1】:

    我认为this 会帮助你。文章也有一个例子。

    【讨论】:

    • 对我不起作用 - iframe 在另一个 iframe 中,我只能更改父 DOM/CSS/JS
    • 你用 jquery 试过了吗?看到这个link
    • 试过但失败了。请参阅此处的示例:live-ssl.spongecell.com/zipped_animation/assets/1629852/…(等待底部的文字显示)。
    • 试过这个例如:$(function(){ if (/iPhone|iPod|iPad/.test(navigator.userAgent)) $('iframe').wrap(function(){ var $this = $(this); return $('<div />').css({ width: $this.attr('width'), height: $this.attr('height'), overflow: 'auto', '-webkit-overflow-scrolling': 'touch' }); }); }) - 喜欢这里jsfiddle.net/rq7yc4to/1
    • @TimofejIvajkin 你找到改变内容的方法了吗?
    猜你喜欢
    • 2011-06-23
    • 2020-04-08
    • 1970-01-01
    • 1970-01-01
    • 2020-03-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多