iframe去掉滚动条
2014-03-08 13:46:04   来源:   浏览: 次

导读:<script type="text javascript"> function SetWinHeight(obj) { var win=obj; if (document getElementById) { if (win && !window

<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.style.height = win.contentDocument.body.offsetHeight;
   else if(win.Document && win.Document.body.scrollHeight)
win.style.height = win.Document.body.scrollHeight;
}

}
}
</script>

 

<iframe onload="Javascript:SetWinHeight(this)" scrolling="no" id="Iframe2" name="main" src="HYJM.html" frameborder="0" style="height:550px; background-color:#fff; width:792px; " ></iframe>