iframe没有出现在我的DIV上

时间:2015-05-27 03:53:30

标签: html iframe

我是iFrames的新用户,希望在我的页面上显示DIV内的iFrame。当我加载页面时,一切看起来都很好。但是iframe没有显示出来(看到它在后端和DOM中加载)但是从来没有显示它是隐藏的我认为。当页面加载时,即使代码中没有任何内容也说明了这一点。

 <div style="overflow:hidden" class="col-xs-12 col-md-12">
    <iframe frameborder="0" class="img-thumbnail" id="frame" sandbox="allow-
scripts allow-pointer-lock allow-popups allow-forms allow-same-origin" 
style="height: 389.233px;" src="http://www.yoman.com"></iframe> 
    </div>

1 个答案:

答案 0 :(得分:0)

您必须将嵌入设置为true才能将/embed添加到您的链接:

 <div style="bottom: 0px;" id="frame-container">
  <div id="frame-content">
    <div class="row">
      <div style="overflow:hidden" class="col-xs-12 col-md-12">
        <iframe frameborder="0" class="img-thumbnail" 
        id="frame" sandbox="allow-scripts allow-pointer-lock allow-popups allow-forms allow-same-origin " style="height: 389.233px;" 
        src="http://www.yoman.com/embed"></iframe> 
      </div>
    </div>
  </div>
</div>  

了解更多信息,请参阅此链接:

Overcoming “Display forbidden by X-Frame-Options”

相关问题