调节FB.ui的位置()对话框 [英] Adjusting the position of FB.ui() dialog box

查看:208
本文介绍了调节FB.ui的位置()对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Fb.ui()发布一个更新到用户的墙,但(如果向上滚动中心中)对话框总是出现在我的浏览器在同一地点。问题是,我是从屏幕的底部开口的对话框。有没有办法让对话框显示用户的当前位置滚动?

I'm using Fb.ui() to post an update to user's wall but the dialog always appears in the same spot in my browser (center middle if scrolled up). The problem is that I'm opening the dialog from the bottom of the screen. Is there a way to get the dialog to show for the user's current scroll location?

推荐答案

该FB.ui()对话应该已经相对于用户滚动是目前地方positionned。

The FB.ui() dialog should already be positionned relative to the place the user scroll currently is.

如果没有,你可以简单地定位你的#FB-根CSS:

If not, you can simply position your #fb-root in CSS :

#fb-root { position:fixed; top:10%; }

这样,在弹出的将永远是用户的滚动位置,并遵循它,如果他继续或上下滚动页面。

That way, the pop-in will always be on the scroll position of the user and also follow it if he continue to scroll up or down the page.

这篇关于调节FB.ui的位置()对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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