怎么样Facebook的按钮? [英] How to style facebook like button?

查看:130
本文介绍了怎么样Facebook的按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将CS​​S应用于Facebook,如按钮。我知道这是违反TOS改变如何按钮的样子。所有我想要做的是改变Facebook的背景,像按钮,使其与我的网站一致。

I am trying to apply css to facebook like button. I know that it is violating TOS to change how the like button look. All I am trying to do is change the background of facebook like button to make it consistence with my website.

我google了,发现几个文章,我可以风格Facebook喜欢按钮,如果我使用fbml,因为fbml不使用iframe。问题是,看起来facebook正在使用iframe为fbml。

I googled about it and found several articles that I can style facebook like button if I am using fbml because fbml does not use iframe. The problem is, it looks like facebook is using iframe for fbml as well.

据我所知,我不能直接风格包含在一个网页iframe。

as far as I know, I can't directly style a webpage that is included in an iframe.

有没有api的样式(在我的情况下,只改变背景:)类似的按钮?

Is there an api for styling (in my case, changing background only!!) the like button?

推荐答案

您可以使用黑色或浅色主题。

You can use dark or light theme.

您不能对 iframe做任何事情其中 src 属性不是您的域名。

You can not do anything to an iframe of whom's src attribute is not your domain.

唯一可以想到的是一个使用绝对定位,不透明度和z-index的丑陋的黑客,但我不认为值得一提。

The only thing I can think of is an ugly hack using absolute positioning, opacity and z-index, but I don't think it is worth mentioning.

这篇关于怎么样Facebook的按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆