如何从Facebook iFrame应用程序中删除滚动条 [英] How to remove scrollbars from Facebook iFrame application

查看:60
本文介绍了如何从Facebook iFrame应用程序中删除滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个Facebook iframe应用程序,并在Facebook Application设置页面中将尺寸设置为自动调整大小",但是在IE和Google Chrome浏览器的底部仍然显示了水平滚动条.在Firefox中工作正常.有解决方案吗?

I have created a facebook iframe application and set the dimensions to Auto Resize in the Facebook Application settings page but still a horizontal scrollbar is shown at the bottom in IE and Google Chrome. Works fine in Firefox. Any solution ?

推荐答案

在此说明了如何执行此操作: http://clockworkcoder.blogspot.com/2011 /02/how-to-removing-facebook-application-i.html 基本上,您应该使用

It's explained how to do this here: http://clockworkcoder.blogspot.com/2011/02/how-to-removing-facebook-application-i.html Basically you should use

window.fbAsyncInit = function() {
    FB.Canvas.setAutoGrow();
};

还要确保将html和body标记设置为overflow:hidden,这样您就不会得到那些简短显示的令人讨厌的滚动条

plus make sure that your html and body tags are set to overflow:hidden so you don't get those briefly shown scroll bars that are so annoying

<html xmlns="http://www.w3.org/1999/xhtml" style="overflow: hidden">
    <head>
  <!-- Header stuff -->
 </head>
 <body style="overflow: hidden">

这篇关于如何从Facebook iFrame应用程序中删除滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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