开发者

how to capture the resize event in IE8

The resize event does not seems to get fired in IE8 . It works perfectly in Firefox and chrome .

  $(window).resize(function()
  { 
   alert( 开发者_如何转开发" resize called " ) ;
  }

Am I missing something .


This has worked for me

$(window).bind("resize", function(e){
   // do something
});

You are also missing the closing bracket for the resize function;

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜