当父窗口的iframe的高度为100%时
alert(parent.document.getElementById("contentFrame").height);得到的为100%,其中contentFrame为iframe的ID
alert(document.documentElement.scrollHeight);得到的为具体的高度

相关文章:

  • 2022-12-23
  • 2021-11-27
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-07-31
相关资源
相似解决方案