How to style facebook like button?

一个人想着一个人 提交于 2019-11-28 12:02:50

问题


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.

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.

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

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


回答1:


You can use dark or light theme.

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

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.




回答2:


how about over riding the image with another? i know its not the best practice, but u can't change the Facebook branded "Like" button



来源:https://stackoverflow.com/questions/5385700/how-to-style-facebook-like-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!