2012-02-28 80 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() {}); 
相關問題