干净的 AddThis / Facebook Like / Recommend 按钮没有社交文本?
我一直在拼命寻找一种方法来禁用“推荐”按钮旁边的 Facebook 社交文本。是否可以简单地渲染一个“推荐”按钮,而不需要任何其他东西(没有计数器,没有文本,只有按钮)?
问题是,CSS 不会被应用,因为所有元素都在 iframe 内,所以我不能只使用 CSS 隐藏元素本身(在这种情况下将是一个 td)。
另外,我不能将所有内容都放在 div 中并给它溢出:隐藏和固定宽度,因为实际单击“推荐”按钮时出现的弹出窗口将不完全可见。
我当前的实现来自 AddThis:
<a class="addthis_button_facebook_like" fb:like:size="small" fb:like:layout="none" fb:like:action="recommend" fb:like:width="10"></a>
有什么想法吗?
谢谢 亚历克斯
I've been desperately seeking a way to disable the facebook social text right next to the "Recommend" button. Is it possible, to simply render a "Recommend" button, without anything else (no counter, no text, JUST the button)?
The problem is, CSS wont be applied since all the elements are inside the iframe, so I cant just hide the element itself using CSS (which in this case would be a td).
Also, I cant just put everything in a div and give it overflow:hidden and a fix width, since the pop up which appears when actually clicking the "Recommend" Button would then not be fully visible.
My current implementation comes via AddThis:
<a class="addthis_button_facebook_like" fb:like:size="small" fb:like:layout="none" fb:like:action="recommend" fb:like:width="10"></a>
Any ideas?
Thanks
Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Facebook 政策 IV 4 d:
因此,如果您无法使用他们的点赞按钮创建工具,您不应该这样做。
Facebook polcy IV 4 d:
So if you can't do it by using their like button creation tool you shouldn't do it.
使用“添加此 Facebook Like”按钮,您可以避免使用此属性进行计数
所以在您的情况下,您将有
Using the Add This Facebook Like button you can avoid the count using this attribute
So in your case you would have
带计数器的“推荐”最接近您的要求。我也不喜欢社交文本(例如“57个人喜欢这个。成为你的第一个朋友”),但我确实喜欢裸体柜台。我使用的代码是:
请参阅 AddThis 自己的文档此处。
"Recommend" with a counter comes closest to your request. I too don't like the social text (e.g. "57 people like this. Be the first of your friends"), yet I do like the naked counter. The code that I use is:
See AddThis own documentation here.