【问题标题】:like button internet explorer white box appearing像按钮 Internet Explorer 白框出现
【发布时间】:2011-05-02 13:15:49
【问题描述】:

我有一些代码可以显示一个like 按钮,这显示了一个我并不真正想要的随机白框。适用于所有其他浏览器

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"><body>


<iframe src="http://www.facebook.com/plugins/like.php?href=<SITE URL>"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:80px"><iframe>
</body>
</html>

【问题讨论】:

    标签: facebook internet-explorer iframe facebook-like


    【解决方案1】:

    我也有这个问题。

    关闭 iframe 标记并没有解决我的问题。

    使用以下内容:

    <iframe style="visibility:hidden;" onload="this.style.visibility = 'visible';" src="../examples/inlineframes1.html" > </iframe>
    

    这解决了我自己的问题。

    【讨论】:

      【解决方案2】:

      您忘记关闭iframe,而是打开了另一个。尝试将第二个 &lt;iframe&gt; 更改为 &lt;/iframe&gt;

      【讨论】:

        【解决方案3】:

        请关闭 iframe :)

        试试这个:

        <iframe src="http://www.facebook.com/plugins/like.php?href=<SITE URL>"
                scrolling="no" frameborder="0"
                style="border:none; width:450px; height:80px"></iframe>
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2013-12-12
          • 2012-03-26
          • 1970-01-01
          • 1970-01-01
          • 2010-09-25
          • 1970-01-01
          • 1970-01-01
          • 2016-11-05
          相关资源
          最近更新 更多