开发者

how to capture the resize event in IE8

开发者 https://www.devze.com 2023-01-08 02:27 出处:网络
The resize event does not seems to get fired in IE8 . It works perfectly in Firefox and chrome . $(window).resize(function()

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

精彩评论

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