【问题标题】:ionic android app - links inside iframe not workingionic android app - iframe 内的链接不起作用
【发布时间】:2016-01-22 17:53:07
【问题描述】:

当我点击 iframe 内的链接时,没有任何反应。我希望 iframe 中的链接成为可点击的链接。有没有办法允许这样做?

<ion-view style="" title="IFRAME">
    <ion-content class="has-header" overflow-scroll="true" padding="true">
        <div style="" class="list card">
                <div class="item item-divider-android">Website</div>
            <div class="item item-body-android">
                <div style="">
                    <center>
<iframe src='{{trustSrc(website.src)}}' frameborder="0" width="100%" height="800" scrolling="yes"></iframe>

                    </center>
                </div>
            </div>
       </div>
    </ion-content>
</ion-view>

【问题讨论】:

    标签: android angularjs cordova iframe ionic-framework


    【解决方案1】:

    尝试添加

    sandbox="allow-top-navigation">
    

    到 iframe 元素。

    【讨论】:

      猜你喜欢
      • 2016-03-28
      • 1970-01-01
      • 1970-01-01
      • 2020-01-23
      • 2023-03-20
      • 2022-07-20
      • 1970-01-01
      • 1970-01-01
      • 2013-05-31
      相关资源
      最近更新 更多