在页面上添加一下JavaScript代码: <script type="text/javascript"> function SetCwinHeight(){ var myframe=document.getElementById("iframe2"); //你所使用的ifrmae框架的ID if (document.getElementById){ if (myframe && !window.opera){ if (myframe.contentDocument && myframe.contentDocument.body.offsetHeight){ myframe.height = myframe.contentDocument.body.offsetHeight; }else if(myframe.Document && myframe.Document.body.scrollHeight){ myframe.height = myframe.Document.body.scrollHeight; } } } } </script> 框架代码: <iframe width="100%" id="iframe2" οnlοad="Javascript:SetCwinHeight()" height="1" frameborder="0" src="/default.asp?cateID=1"></iframe>