fb:like-box,自定义CSS?

发布于 2024-10-15 16:13:26 字数 63 浏览 7 评论 0原文

是否可以将自定义 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 技术交流群。

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

发布评论

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

评论(5

等待圉鍢 2024-10-22 16:13:26

新的like-box不接受“css”属性。你必须使用旧的 fb:fan 插件来实现它。

例如:

<fb:fan profile_id='[PAGE_ID]' width='300' height='256' show_faces='true' stream='false' header='false' css='[CSS_URL]'></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:

<fb:fan profile_id='[PAGE_ID]' width='300' height='256' show_faces='true' stream='false' header='false' css='[CSS_URL]'></fb:fan>

Remember to add the "all.js".

不顾 2024-10-22 16:13:26
<div id="fb-root"></div>

<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>

<script type="text/javascript">FB.init("Your-App-ID");</script>

<fb:fan profile_id="Your-Page-Profile-ID" connections="20" width="300" height="300" css="http://example.com/likebox-style.css?1"></fb:fan>

不要对发帖率低的页面使用直播,如果只有超过 6 周的帖子,直播将会是空的。

<div id="fb-root"></div>

<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>

<script type="text/javascript">FB.init("Your-App-ID");</script>

<fb:fan profile_id="Your-Page-Profile-ID" connections="20" width="300" height="300" css="http://example.com/likebox-style.css?1"></fb:fan>

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.

合久必婚 2024-10-22 16:13:26

您可以将 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

挽梦忆笙歌 2024-10-22 16:13:26

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

辞取 2024-10-22 16:13:26

有关该主题的更多信息:

如果要使用force_wall属性,则需要使用iframe版本。

基本上:

转到:

完成

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:

DONE

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