facebook iframe 应用程序:发送/点赞按钮 z-index 问题
如果您打开:http://apps.facebook.com/bymii-test/products.php?pageid=216605071714962&prd_id=35&prd_name=Coalesce: - 点击facebook发送,方框在后面脸书侧边栏。有什么方法可以:更改 z-index - 或使窗口在左侧弹出?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我终于找到答案了! 1 1/2 小时后搜索..只需将此代码输入到您的 CSS 文件中:
希望这就是您正在寻找的内容,因为这正是我正在寻找的内容!
I FINALLY FOUND THE ANSWER!! 1 1/2 Hours searching later.. just enter this code into your CSS file:
Hope this is what you were looking for, because it was exactly what I was looking for!
确保父/容器元素具有 css 值
“overflow:visible”
。当“overflow:hidden”
时会发生这种情况。希望这有帮助。Make sure the parent/container element has css value
"overflow:visible"
. It happens when"overflow:hidden"
. Hope this helps.让它弹出并覆盖所有内容的方法是使“赞”按钮在 XFBML 中工作。 iframe 的实现是有限的,如果您更改它的高度和宽度以适合按钮,窗口将显示为隐藏。
The way for it to popup up and over all of it is to make the like button work in XFBML. The iframe implementation is limited and if you change the height and width of it to just fit the button, the window will appear hidden.
我发现这是可行的:
正如您所看到的,它要求这些元素“继承”其父元素的宽度属性。
希望有帮助。
I found this to work:
As you can see, it's asking those elements to "inherit" the width attributes of its parent elements.
Hope that helps.
我修改了 Shane 的优秀解决方案,专门关注 z-index:
css:
上面的 css 代码将 Facebook 小部件显示在其他所有内容之上,而无需重新定位或“溢出”任何内容。
I modified Shane's excellent solution to focus specifically on z-index:
css:
The above css code shows the Facebook widget above everything else, without having to relocate or "overflow" anything.
这是所有开发者面临的共同问题。弹出窗口无法检测其在页面或 iframe 中的相对位置。
为了获得所需的结果,我总是在页面左侧安装我喜欢的发送按钮。
This is a common problem all developers are facing. The popup has no way to detect its relative position on a page or in an iframe.
To get the desired results i always install my like, send buttons on the left side of my page.