Tip: you can modify some code before running
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>Iframe adaptive height implementation code</title></head><script type="text/javascript">Function SetWinHeight (obj) {var win = obj; if (document. getElementById) {if (win &&! Window. opera) {if (win. contentDocument & win. contentDocument. body. offsetHeight) win. height = win. contentDocument. body. offsetHeight; else if (win. document & win. document. body. scrollHeight) win. height = win. document. body. scrollHeight ;}}}</script></head><body> <IFRAME ID="frmMain" WIDTH="500" HEIGHT="100%" ALIGN="CENTER" MARGINWIDTH="0" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" onload="Javascript:SetWinHeight(this)" SCROLLING="NO" SRC="http://www.111cn.net"></iFRAME></body></td> </tr></table>
Tip: you can modify some code before running