fb:like-box,自定义CSS?
是否可以将自定义 css 文件添加到 fb:like-box 中?例如,我想删除 iframe 周围的边框。谢谢
Is it possible to add a custom css file to a fb:like-box? For example, I would like to remove the borders around the iframe. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
新的like-box不接受“css”属性。你必须使用旧的 fb:fan 插件来实现它。
例如:
记住添加“all.js”。
The new like-box does not accept the "css" attribute. You have to use the old fb:fan plugin to achieve it.
For example:
Remember to add the "all.js".
不要对发帖率低的页面使用直播,如果只有超过 6 周的帖子,直播将会是空的。
Don't use live stream for pages with low post rate, the stream will be empty if there are only posts older than 6 weeks.
您可以将
css
属性添加到
标记,并将 href 指向自定义 CSS 样式表。这将允许您操纵现有的样式。关于此主题的一篇好文章: http://line25.com/tutorials/how-to-add-a-custom-facebook-like-box-to-your-site
You can add a
css
attribute to the<fb:like-box>
tag with a href to your custom CSS stylesheet. This will allow you to manipulate the existing styles.A good article on this subject: http://line25.com/tutorials/how-to-add-a-custom-facebook-like-box-to-your-site
Facebook like box 不再支持 CSS。脸书报道:
由于安全问题,对自定义 CSS 的支持已被删除。现在,我们允许通过 show_border=false 参数呈现 likebox 插件无边框。
然而,如果你想让你的点赞框变得丰富多彩,你可以使用 svg 渐变技巧。阅读 - 使用 SVG 设计 Facebook Like Box
Facebook like box no longer supports css. Facebook reports:
Support for custom CSS has been removed due to security implications. We now allow the likebox plugin to be rendered without a border via the show_border=false argument.
However, if you like to make your like box colorful you can use the svg gradient trick. Read - Styling Facebook Like Box With SVG
有关该主题的更多信息:
如果要使用force_wall属性,则需要使用iframe版本。
基本上:
转到:
http://developers.facebook.com/ docs/reference/plugins/like-box/
获取 iframe 代码
向其添加 profile_id 和 css 属性(如上所述)
更改 www.facebook.com/plugins/likebox.php 的路径?到 http://www.connect.facebook.com/widgets/fan.php?...
完成
More information about the topic:
If you want to use the force_wall attribute, you'll need to use the iframe version.
Basically:
Go to:
http://developers.facebook.com/docs/reference/plugins/like-box/
Get the iframe code
Add the profile_id and css attributes to it (like explained above)
Change the path from www.facebook.com/plugins/likebox.php? to http://www.connect.facebook.com/widgets/fan.php?...
DONE