拉伸应用程序的页面宽度
我需要拉伸应用程序已用空间的宽度。下图显示有空间可以使用。
图片:http://imageshack.us/photo/my-images/834/ imgbe.png/
此操作的一个示例是: http://apps.facebook.com/meucalendario/
Ps:我尝试使用:FB.Canvas。 setAutoGrow、FB.Canvas.setSize()但没有成功。
谢谢。
I need to stretch width of the used space of my app. The following image shows that there is space to be used.
Image: http://imageshack.us/photo/my-images/834/imgbe.png/
An example of this action would be:
http://apps.facebook.com/meucalendario/
Ps: I tried using: FB.Canvas.setAutoGrow, FB.Canvas.setSize () but no success.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认画布宽度为 760px,但 Facebook 最近为开发人员添加了使用流动宽度的选项。这意味着您的 iframe 将具有
100%
宽度,并将根据用户的屏幕分辨率/浏览器进行扩展。您可以在此处阅读官方博客文章和示例(假设您已在您的应用设置中设置了该选项):
PS:您无法覆盖右侧的实时行情!
The Default Canvas Width is 760px, but Facebook has recently added the option for developers to use fluid widths. Which means your iframe will have a
100%
width and will expand depending on the user's screen resolution/browser.You can read the official blog post here, and an example (assuming you already set the option in your app settings):
P.S.: You can't override the live ticker on the right!
你做不到。它的最大值为 760px,这取决于您可以将应用程序的视口拉伸到多远。
You cannot do it. It's max value is 760px, that is up-to how far you can stretch your application's view port.