iframe高度问题
我知道这个话题已经被多次询问和回答,但请相信我花了很多时间寻找有效的和/或我真正能理解的帮助和答案。
这是同样的问题: 我已经弄清楚如何添加自定义选项卡,甚至为其添加自定义图标(我真的很高兴能够做到这一点!)。 但是,正如许多其他的帮助请求一样,它有可怕的滚动条。 我和其他人一样,希望它能够向下流动超过其有限的 800 像素大小。 我对此有几种不同的修复方法,有些我尝试过但没有成功,有些则超出了我的想象,我根本不明白正在写什么,它去了哪里以及需要在其中编辑什么。
我真的很感激有人花时间引导我完成整个过程并解释什么以及如何做。
在此处查看页面:http://www.bronts.com/bronts_facebook/index.html
在此处查看 facebook 内的页面:http://www.facebook.com/pages/brontscom/191839754181703
I know this topic has been asked about and answered multiple times but please believe that I have spend many hours searching for help and answers that work and/or I can actually understand.
It's the same ol' issue:
I have figured out how to add a custom tab and even a custom icon for it (and I am really happy to have been able to do even that!).
But, as per many other requests for help, it has the dreaded scroll bars.
I, like the others, want it to flow down past it's limited 800px size.
I have several different fixes for this, some I have tried unsuccessfully and some just go right over my head and I do not understand what is being written at all, where it goes and what needs to be edited in it.
I would really appreciate someone taking the time to walk me through the process and explaining the what's and how to's please.
View page here: http://www.bronts.com/bronts_facebook/index.html
View page within facebook here: http://www.facebook.com/pages/brontscom/191839754181703
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您将需要使用 javascript sdk 在 pagetab 应用程序中自动调整 iframe 的大小。为此,您需要有一个应用程序 ID。请参阅 https://developers.facebook.com/docs/reference/javascript/
FB.Canvas.setAutoResize();设置画布的高度。
这是我的应用程序的工作示例。 http://www.facebook.com/apps/application.php?id=135669679827333&sk=app_135669679827333
注意:setAutoResize();将更改为 setAutoGrow();
另外:您可能需要减小图像的宽度,直到自动调整尺寸到位后才能确定。
---------- 我使用这个并添加到 <<身体>我的文档的标签。
You will need to use javascript sdk to autosize the iframe in a pagetab app. You will need to have an application id for this. Refer to https://developers.facebook.com/docs/reference/javascript/
the FB.Canvas.setAutoResize(); sets the height of the canvas.
here is working example on my app. http://www.facebook.com/apps/application.php?id=135669679827333&sk=app_135669679827333
NOTE: setAutoResize(); will be changing to setAutoGrow();
ALSO: you may need to reduce the width of your image, not sure until auto size is in place.
---------- i use this and add just below the < body > tags of my documents.
将
overflow:hidden;
添加到body
并使用 jQuery.ScrollTo 在 iframe 内导航。Add
overflow: hidden;
to yourbody
and use jQuery.ScrollTo to navigate inside iframe.