//iframe自适应高度 var iframeHeight = $("#middle").contents().find("body").height(); $("#middle").css('height', iframeHeight);