第一 Iframe 代码:<iframe src="class.html" scrolling="no" frameborder="0"id="classpage" style="height:expression(1); aho:expression(autoResize())" ></iframe>第二 被嵌入的页面的body标签: <body onload=parent.document.all.classpage.height=document.body.scrollHeight> 第三 Iframe 的使用页里增加 js 控制代码function autoResize(){try{document.all["classpage"].style.height=classpage.document.body.scrollHeight}catch(e){}}
痛苦留给的一切,请细加回味!苦难一经过去,苦难就变为甘美。