frameset的frame的resize事件问题

jiabajiaba888 2013-01-11 06:01:52
<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实现??
...全文
248 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
rayaspnet 2013-01-12
  • 打赏
  • 举报
回复
引用 楼主 jiabajiaba888 的回复:
<FRAMESET rows="40%,*"> <FRAME SRC="a.html"> <FRAMESET cols="50%,*"> <FRAME SRC="b.html"> <FRAME SRC="c.html"> </FRAMESET> </FRAMESET> 现在在a.html页面监听resiz事……
根据我的阅读, 在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/
jiabajiaba888 2013-01-12
  • 打赏
  • 举报
回复
问题解决了 分享一下 var doit; $(window).resize(function(){ clearTimeout(doit); doit = setTimeout(function(){resizedw();}, 100); });

87,904

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧