开发者

Flickering Page

when i am refresh开发者_开发技巧ing the page Flickering happens. I can see the resizing effect in page.How can i avoid this? I am using master page in my Project. In body tag i am using this(<body onload="return SetContentHeight();" onresize="return SetContentHeight();">) to call the function. My content page inside a table. So i am setting up height and width for this table. SetContentHeight(){//Assigning Height and width of content page}


If you initiate your code after page load, you prevent. In page loading triggers resize, since page is rendered times before pageloaded.

so I suggest

 $(window).resize(function() {
   SetContentHeight();
 });
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜