/iframe的高度随内容自动增大
function autoResize(strObj)
{
try {
document.all[strObj].style.height=web.document.body.scrollHeight;
}
catch(e){}
}
<IFRAME frameBorder=0 id=web name=web scrolling=no src="http://ivan.pagou.com/jingjia/test.htm" style="height:expression(1); aho:expression(autoResize('web')); width:100%;"></IFRAME>
function autoResize(strObj)
{
try {
document.all[strObj].style.height=web.document.body.scrollHeight;
}
catch(e){}
}
<IFRAME frameBorder=0 id=web name=web scrolling=no src="http://ivan.pagou.com/jingjia/test.htm" style="height:expression(1); aho:expression(autoResize('web')); width:100%;"></IFRAME>