我在我的网站中包含了类似 facebook 的按钮,并且我使用了 i frame
这是我的 facebook 按钮代码
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&width&layout=box_count&action=like&show_faces=true&share=true&height=65" scrolling="no" frameborder="0" style="border:none;overflow:hidden;height:65px;" allowTransparency="true"></iframe>
这种风格很好,它的正方形并以相同的方式修复在我的页面中
我需要应用与 facebook 相同的样式
<iframe src="//platform.twitter.com/widgets/follow_button.html?screen_name=twitterapi"
style="width: 300px; height: 20px;"
allowtransparency="true"
frameborder="0"
scrolling="no">
</iframe>
<iframe src="https://plusone.google.com/_/+1/fastbutton?bsv&size=medium&hl=en-US&url=http://test.com/&parent=http://test.com/" allowtransparency="true" frameborder="0" scrolling="no" style="border:none;overflow:hidden;height:65px;" title="+1"></iframe>
最佳答案
检查此来源:https://dev.twitter.com/web/overview/css (推特)
还有这个:https://developers.google.com/+/web/+1button/ (谷歌+)
有一些示例和样式生成器如何自定义此插件
关于css - 尝试像 facebook 一样更改 Twitter 按钮样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28723541/