【问题标题】:Styling a facebook iframe on website在网站上设计一个 facebook iframe
【发布时间】:2015-09-06 16:02:50
【问题描述】:

我在我的网站上嵌入了一个 facebook 页面:

 <iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2FIACTTV&width=1200&colorscheme=light&show_faces=true&border_color&stream=true&header=true&height=635" scrolling="yes" style="border:none; overflow:hidden; width:1200px; height:930px; background: white;" allowtransparency="true" frameborder="0">
</iframe>

该框以 500 像素的宽度显示,我似乎无法将内容设为 1200 像素。 任何人都有设计likebox iframe的经验?

我试过了:

iframe #u_0_0 div {
    width: 1200px !important;
}

【问题讨论】:

    标签: html css facebook facebook-iframe


    【解决方案1】:

    Facebook 只允许插件的 ma​​x-width500px

    来自 Facebook 开发者文档:

    width - 插件的像素宽度。分钟。是 180 和最大。是 500

    here

    【讨论】:

      猜你喜欢
      • 2018-12-31
      • 2011-07-02
      • 2015-07-19
      • 1970-01-01
      • 2014-07-04
      • 1970-01-01
      • 2012-06-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多