代碼如下:
var width = document.documentElement.clientWidth;
//初始化高度?
$("#iFrame1").height(width*0.5);?
//當文檔窗口發生改變時 觸發?
$(window).resize(function(){?
});