Facebook 粉丝专页增至 520 个

发布于 2024-12-25 18:56:12 字数 279 浏览 4 评论 0 原文

我创建了一个粉丝页面并集成了一个宽度为 520px 的应用程序。一切正常,但上下文向右移动了 5 像素到 10 像素,因此页面末尾显示了一个滚动条。我该如何解决这个问题。

我知道滚动条可以通过 overflow:hidden 和内部标记 隐藏,但这并不能解决向右移动的问题。

在此处输入图像描述

I created a fanpage and integrated a app with width 520px. Everything works fine but the context is 5px to 10px shifts to the right and so on there is a scrollbar shown at the end of page. How can I solve this.

I know scrollbars can be hidden with overflow:hidden and inside tag <body scroll=no> but this doesn´t solve the shift to the right.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

纵情客 2025-01-01 18:56:12

您可以尝试使用FB.Canvas.setAutoGrow方法:

请阅读FB.Canvas.setAutoGrow 方法的 Facebook JS SDK 文档。该链接中解释了如何使用 Facebook 的自动调整大小功能来解决此类问题。

You can try using the FB.Canvas.setAutoGrow method :

Please read the Facebook JS SDK Documentation of the FB.Canvas.setAutoGrow method. In that link is an explanation on how to use facebooks auto size functions to fix these sorts of problems.

瑶笙 2025-01-01 18:56:12

问题似乎是 facebook fanpages 选项卡有一个 html - 填充为 8px!!!!为了解决这个问题,我在 css 中设置:

The problem seems to be that facebook fanpages tabs have a html - padding with 8px!!!! to solve this I set in css: <body style="position:relative;left:-8px;">

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文