<FRAMESET rows="40%,*">
  <FRAME SRC="a.html">
  <FRAMESET cols="50%,*">
         <FRAME SRC="b.html">
     <FRAME SRC="c.html">
      </FRAMESET>
</FRAMESET>现在在a.html页面监听resiz事件$(window).resize(function() {
      console.log("resize:::"+document.body.offsetWidth);
   });
问题:::在鼠标移动到frame之间的分割线就会触发,怎么才能在resize完成后去触发,jquery实现??jquery resize framejquery frame resize

解决方案 »

  1.   

    根据我的阅读, 在jquery里面没有这个之后的事件,而且各个浏览器之间实现RESIZE 的时间都不一样。Depending on implementation, resize events can be sent continuously as the resizing is in progress (the typical behavior in Internet Explorer and WebKit-based browsers such as Safari and Chrome), or only once at the end of the resize operation (the typical behavior in some other browsers such as Opera).
    http://api.jquery.com/resize/
      

  2.   

    问题解决了  分享一下
    var doit;
    $(window).resize(function(){
       clearTimeout(doit);
       doit = setTimeout(function(){resizedw();}, 100);
    });