采用JAVASCRIP技术实现:
<script type="text/javascript">
function SetCwinHeight(){
var adaptive=document.getElementById("adaptive");
if (document.getElementById){
if (adaptive && !window.opera){
if (adaptive.contentDocument && adaptive.contentDocument.body.offsetHeight){
adaptive.height = adaptive.contentDocument.body.offsetHeight;
}else if(adaptive.Document && adaptive.Document.body.scrollHeight){
adaptive.height = adaptive.Document.body.scrollHeight;
}
}
}
}
</script>
<iframe width="100%" id="zishiying" onload="Javascript:SetCwinHeight()" height="1" frameborder="0" src="http://www.bbs.itheima.com/"></iframe> |