Facebook Fan-Box / Likebox 身高问题直播

发布于 2024-12-03 05:22:56 字数 656 浏览 2 评论 0原文

我想在我的网站上整合 FB Fan-Box。一切正常,除了高度不正确。对我来说,重要的不是显示面孔,而是显示流。当我调整高度参数时,整个框架变大,但其中包含流的图层仍保持 300px。我如何将其设置为 900px,因为我希望我的访问者在流中看到更多活动?!

这是我的代码:

<iframe 
   src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F
%2Fwww.facebook.com%2Fapps%2Fapplication.php%3Fid%3D200876329955648&amp;width=800&
amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=true&
amp;header=false&amp;height=900" 
    scrolling="no" 
    frameborder="0" 
    style="border:none; overflow:hidden; width:800px; height:900px;"
    allowTransparency="true"></iframe>

感谢您的帮助!!!!

I would like to integrate FB Fan-Box on my website. Everything works fine, except the height is not correct. For me, the important thing is not displaying the faces, but the stream. When I adjust the height parameter the whole frame gets bigger, but the layer with the stream in it remains still 300px. How can I set this to 900px, since I would like my visitors to see more activities on the stream?!

Here is my code:

<iframe 
   src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F
%2Fwww.facebook.com%2Fapps%2Fapplication.php%3Fid%3D200876329955648&width=800&
amp;colorscheme=light&show_faces=false&border_color&stream=true&
amp;header=false&height=900" 
    scrolling="no" 
    frameborder="0" 
    style="border:none; overflow:hidden; width:800px; height:900px;"
    allowTransparency="true"></iframe>

Thanks for the help!!!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

为你拒绝所有暧昧 2024-12-10 05:22:56

尝试 HTML5 版本,它可能会工作得更好:

<div 
  class="fb-like-box" 
  data-href="http://www.facebook.com/platform" 
  data-width="292" 
  data-height="900" 
  data-show-faces="false" 
  data-stream="true" 
  data-header="false">
</div>

我已经验证它将达到 900 高度,显示更多流项目。

Try the HTML5 version, it may work better:

<div 
  class="fb-like-box" 
  data-href="http://www.facebook.com/platform" 
  data-width="292" 
  data-height="900" 
  data-show-faces="false" 
  data-stream="true" 
  data-header="false">
</div>

I've verified that it will go to 900 in height showing more stream items.

影子的影子 2024-12-10 05:22:56

不,这不是针对我的 2000px

<div class="fb-like-box" 
                 data-width="1100"
                 data-height="2000"

Facebook 的 HTML 5 标签正确生成 iframe 高度,而是在 iframe 内部
它明确地将 div 设置为 300px...这是一个非常烦人的错误,

<iframe name="f36c389328" width="1100px" height="2000px"
<html>
..
<div class="phm pluginLikeboxStream" style="height: 300px"> <---

如果 FB 端默认为 300px,那么配置它有什么意义呢?

No it is not for my HTML 5 tag with 2000px

<div class="fb-like-box" 
                 data-width="1100"
                 data-height="2000"

Facebook generate iframe height correctly, but inside the iframe
it explicitly set div to 300px... This is a very annoying bug

<iframe name="f36c389328" width="1100px" height="2000px"
<html>
..
<div class="phm pluginLikeboxStream" style="height: 300px"> <---

What is a point of having it configurable if it is defaulted to 300px on FB side?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文