function SetCwinHeight()
{
  var cwin=document.getElementById("cwin");
  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="778" align="center" height="200" ></iframe>

相关文章:

  • 2022-02-07
  • 2021-10-15
  • 2021-08-28
  • 2021-12-12
  • 2021-12-12
  • 2021-07-05
  • 2022-12-23
猜你喜欢
  • 2021-09-07
  • 2021-12-12
  • 2021-06-02
  • 2021-10-31
  • 2021-11-05
  • 2021-06-12
相关资源
相似解决方案