欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Iframe自適應(yīng)高度兼容ie,firefox多瀏覽器

 更新時(shí)間:2008年04月11日 19:26:13   作者:  
從網(wǎng)上找的Iframe自適應(yīng)高度,不是自已寫的! 從哪找的忘了,要不一定寫明出處! 放出來(lái)給自已留個(gè)備份!
復(fù)制代碼 代碼如下:

<script type="text/javascript">
 function SetCwinHeight(){
  var bobo=document.getElementById("bobo"); //iframe id
  if (document.getElementById){
   if (bobo && !window.opera){
    if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
     bobo.height = bobo.contentDocument.body.offsetHeight;
    }else if(bobo.Document && bobo.Document.body.scrollHeight){
     bobo.height = bobo.Document.body.scrollHeight;
    }
   }
  }
 }
</script>
<iframe width="100%" id="bobo" onload="Javascript:SetCwinHeight()" height="1" frameborder="0" src="/default.asp?cateID=1"></iframe>



[Ctrl+A 全選 注:引入外部Js需再刷新一下頁(yè)面才能執(zhí)行]

相關(guān)文章

最新評(píng)論