js实现方法:
function SetHeight(obj)
{
var cwin=obj;
if (document.getElementById)
{
if (cwin && !window.opera)
{
if (cwin.contentDocument && cwin.contentDocument.body.offsetHeight)
cwin.height = cwin.contentDocument.body.offsetHeight;
else if(cwin.Document && cwin.Document.body.scrollHeight)
cwin.height = cwin.Document.body.scrollHeight;
}
}
}
<iframe width="610" height="10" οnlοad='Javascript:SetHeight(this)' src="<bean:write name="htmlurl" scope="request"/>" frameborder="0" align="center"/>