开发者

how to get rid of scroll bar in facebook fan page

开发者 https://www.devze.com 2023-03-31 18:06 出处:网络
I recently created a fb page for sharing my photography work. I\'m new to iframes n stuff so I did my welcome page via an app provided by wildfire

I recently created a fb page for sharing my photography work. I'm new to iframes n stuff so I did my welcome page via an app provided by wildfire

Here is th开发者_C百科e link to the page https://www.facebook.com/pages/Bharath-Keshav-Photography/144046682351773

Now, how exactly do i get rid of the vertical scroll? The app specifically says that scripts aren't allowed. Also, setting body style="overflow: hidden" isn't allowed as tells me that the body tag can't be used


The best solution would be to use the JS-SDK. You can either use FB.Canvas.SetAutoResize to have your page automatically resized or, if you know exactly what the height and width of the page will be, use Fb.Canvas.SetSize

You can find more info here: https://developers.facebook.com/docs/reference/javascript/

Also, keep in mind that the maximum width of a page app is 520 pixels and from personal experience, it's best to keep it around 500-510px


You have to make your css in this way

body {
            width:520px;
            margin:0;
            padding:0;
            border:0;
            overflow:hidden;
            }

and use FB.Canvas.setAutoResize(); In this way you can do your tab 520 pixel without scrollbar

0

精彩评论

暂无评论...
验证码 换一张
取 消