2012-02-28 79 views

回答

2
$(body).resize(function(){ 
    alert('on inside iframe'); 
}); 

编辑:

在HTML

<body onresize="myFunction()"> 
+1

在Firefox中,歌剧院,谷歌Chrome和Safari浏览器中,在onResize事件被触发仅在浏览器窗口的大小是changed.http://帮助.dottoro.com/ljorlllt.php – Yosef 2012-02-28 15:58:23

+1

这看起来不正确。 w3Schools建议onResize只适用于。 http://www.w3schools.com/jsref/event_onresize.asp – 2015-09-01 18:08:33

1

你需要调用resize()处理parent文件iframe

$('iframe').resize(function() {}); 
相关问题