【问题标题】:Facebook like box is overwriting a youtube iframeFacebook like box 正在覆盖 youtube iframe
【发布时间】:2014-05-08 16:05:36
【问题描述】:

问题是我有一个 youtube iframe 和一个 facebook iframe 用于 facebook 的like box。两个地方都显示了类似框。我该如何解决这个问题?

这是页面源代码中显示的 HTML:

<div class="wpb_raw_code wpb_content_element wpb_raw_html">
    <div class="wpb_wrapper">
        <iframe width="420" height="315" src="//www.youtube.com/embed/YerNjFjBrOo" frameborder="0" allowfullscreen></iframe>
    </div> 
</div> 
    </div> 
</div> 

<div class="vc_span4 wpb_column column_container">
    <div class="wpb_wrapper">
        <div class="a13-separator wpb_content_element separator_align_center separator_align_center single_dots"><h3 style="font-weight:normal;"><span>Cost Effective and Low Maintenance</span></h3>
<div></div></div>
<div class="a13-separator full_width empty" style="margin-top:10px;"><div></div><br class="clear" /></div>

<div class="wpb_text_column wpb_content_element ">
    <div class="wpb_wrapper">
        <p>Concrete borders are a cost effective, low maintenance way to create permanent finishing touches to your lawn, reducing time consuming yard work and increasing property values.  The various curb styles that Curb-It, Inc. offers will reduce edging, trimming and time spent maintaining the landscaping. Concrete curbs are an attractive and durable investment in your property that will last for years to come.</p>

    </div> 
</div> 
<div class="wpb_raw_code wpb_content_element wpb_raw_html">
    <div class="wpb_wrapper">
        <iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FCurbit&amp;width=300&amp;height=558&amp;colorscheme=light&amp;show_faces=true&amp;header=false&amp;stream=true&amp;show_border=false&amp;appId=116642065097325" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:558px;" allowTransparency="true"></iframe>
    </div> 
</div> 
    </div> 
</div>

【问题讨论】:

  • 您能创建一个小提琴或将我们链接到您的实时页面吗,我想进行一些检查
  • 我无法在小提琴中复制它。我最终恢复到解决问题的 youtube 的旧实现方法。

标签: javascript html facebook iframe youtube


【解决方案1】:

我从来没有找到原因,但解决问题的解决方案是恢复到 youtube 的旧嵌入代码,而不是使用 iFrame。

【讨论】:

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