<body onload=“reset()”
>   <div id="part1"> some thing here ....   <div>   <ifame src="xxxx"/>   <script>   function reset(){   var height = window.innerHeight; document.getElementById("part1").style.minHeight = height+"px";     }   </script> </body>

在一个html页面中,通过iframe包含另一个页面的时候,导致onload=“reset()”失效

解决:把<iframe>移到script后面,原因未明

相关文章:

  • 2022-02-22
  • 2021-06-02
  • 2021-06-18
  • 2021-07-16
  • 2022-02-28
  • 2022-12-23
  • 2021-07-10
  • 2021-09-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2021-08-31
相关资源
相似解决方案