Since the update to timeline, my resize scripts stopped working on facebook. This is my code:
CSS:
html {
margin:0;
padding:0;
height:1500px;
}
body {
width:520px;
padding:0;
margin:0;
height:1500px;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
color:#555859;
}
该机构:
<div id="fb-root"></div>
<script type="text/javascript" src="https://connect.facebook.net/en_US/all.js"></script>
脚步:
<script type="text/javascript">
FB.Canvas.setSize({ width: 520, height: 1500 });
window.fbAsyncInit = function () {
FB.Canvas.setAutoGrow();
}
</script>
我当时把Canvas Height确定为流利。
我失踪了一点重要吗? 是否有更好的办法?