固定宽度在Facebook粉丝专页 [英] Fixed width in facebook fanpage

查看:152
本文介绍了固定宽度在Facebook粉丝专页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 fanpage ,我需要在 fanpage 上上传整个网站。这意味着该网站完全显示在 fanpage 上。您知道 fanpage 的宽度最大为720px。有没有办法可以缩小网站并显示在 fanpage

I am working on a fanpage where I need to upload whole of the site on the fanpage. It means that the site is completely shown on the fanpage. As you know that the width of the fanpage is maximum 720px. Can there be a way I can shrinkup the site and show it on the fanpage?

提前感谢。 / p>

Thanks in advance.

推荐答案

粉丝页宽度不是 720px 520px 并显示您需要使用最大宽度520px进行重新设计的网页,以解决问题,或者您可以在页面底部添加滚动条来水平浏览。

the fan page width is not 720px its 520px and to show the website on the fanpage you need to re-design using max width 520px that will solve the problem or you can add the scroll bar at the bottom of the page to navigate horizontally .

如果要使用第二种方法,您还需要使用此代码块

If you want to use 2nd method you need to use this code block too

FB.init({ appId : APP_ID, status: true, cookie: true, xfbml: true, oauth:true});

var obj =   new Object;
obj.width=1024;
obj.height=960;
FB.Canvas.setSize(obj);

使用此代码块可以设置页面的自定义宽度和高度,但如果宽度超过 520px 页面将显示底部的滚动条。

Using this code block you can set the custom width and height of the page , but if the width exceeds 520px the page will show the scroll bar at the bottom .

祝你好运!

这篇关于固定宽度在Facebook粉丝专页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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