本文介绍了Facebook Canvas setAutoGrow永远在IE中生长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将setAutoGrow设置为true时,我的Facebook pagetab上的Internet Explorer 9出现了一个奇怪的问题。身高连续不断地增长。这只适用于Internet Explorer。通过Chrome和Firefox进行测试。

I am seeing a weird issue in Internet Explorer 9 on my Facebook pagetab when I have setAutoGrow to true. The height grows continuously without end. This is only happening in Internet Explorer for me. Tested with Chrome and Firefox as well.

可以在

任何想法可能是什么原因?我在这里看到另一个线程,建议它是html,正文设置为100%,另一个表示最高利润的原因。我试过这两种补救措施都没有用。

Any ideas on what could be the cause? I read another thread on here that suggested it was html, body being set to 100%, and another which said a top-margin was the cause. I'm tried both of these remedies to no avail.

编辑:在更多的搜索中,我看到一个全局变量可能是问题,但是经历了似乎不是原因。

In more searching, I saw that a global variable might have been the issue, but went through and that does not appear to be the cause either.

提前感谢任何想法。

推荐答案

可以试试

FB.Canvas.setSize();

所有内容加载后

或使用简单的计时器

   var resizetimer= window.setTimeout(function() {
           FB.Canvas.setSize();
       }, 4000);

这篇关于Facebook Canvas setAutoGrow永远在IE中生长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 11:57
查看更多