脸书喜欢&发送按钮弹出方向
如何设置 Facebook“弹出”的“喜欢”或“发送”按钮的方向。目前,我们将 Facebook 社交插件浮动在页面右侧。但是,当有人打开 Facebook“弹出窗口”时,它会向右打开,在理想情况下它会向左打开时展开页面。
我保证,我们不需要您喜欢该网站:) 任何帮助都会不胜感激。
<div class="side-right">
<fb:like href="http://compfight.com" send="true" layout="button_count" width="150" show_faces="false" action="recommend" font="" class=" fb_edge_widget_with_comment fb_iframe_widget">
</div>
side-right 类有一个 float:right;和 text-align:right 附加到它。
How can I set the direction of the facebook "flyout" on the like or send button. We currently float our facebook social plugins on the right side of the page. But, when someone opens the facebook "flyout" it opens right, expanding the page when ideally it would open to the left.
Example: http://compfight.com
I promise, we don't need you to like the site:) Any help would be greatly appreciated.
<div class="side-right">
<fb:like href="http://compfight.com" send="true" layout="button_count" width="150" show_faces="false" action="recommend" font="" class=" fb_edge_widget_with_comment fb_iframe_widget">
</div>
The class side-right has a float:right; and text-align:right attached to it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
尝试将此样式添加到您的页面:
Try adding this style to your page:
如果需要,您可以隐藏弹出按钮,就像在 Firefox 中一样,弹出按钮可以将内容推出位置(我们在侧边栏的 jQuery 滑块中有一个 LIKE 按钮,每次单击“LIKE”都会将侧边栏图像推出框架。
使用上面帖子中的 Andrew 的 CSS,我发现一个简单的 display:none 就可以解决问题,
这可以防止我们的内容被迫向上并超出框架。
You can HIDE the flyout if need be, as in Firefox where the flyout can push the content out of position (we had a LIKE button in a jQuery slider in a sidebar, and each LIKE clicked was pushing the sidebar image out of the frame.
Using Andrew's CSS from the post above, I found that a simple display:none did the trick.
That precented our content from being forced upwards and out of frame.
目前不支持此操作,因为一切都在 iframe 内并且不受应用程序的控制。
订阅官方错误以获取有关该问题的更新:
https://developers.facebook.com/bugs/ 1420124294938118/
No support for this at the moment as everything is within an iframe and out of your app's control.
Subscribe to the official bug to get updates on the issue:
https://developers.facebook.com/bugs/1420124294938118/
您无法自定义飞出窗口的位置,但请在此处查看我的替代方案。
Facebook 发送按钮弹出按钮
You can't customize the location of the fly out window but see my alternative here.
Facebook send button flyout
不会自动执行吗?
http://jsfiddle.net/Zf7mY/
示例
does not do it automatically?
http://jsfiddle.net/Zf7mY/
example with
我刚刚添加了fb like到带有overflow:hidden的div...
添加评论到你的喜欢对于破坏你的网页设计来说并不是那么重要,你想要那个喜欢,评论只是奖金;-)
I just added fb like to div with overflow:hidden...
Add comment to your like is not so important to destroy your web design, you want that like, comment is just bonus ;-)