转自:天芒

1  function adjustIFramesHeightOnLoad(iframe) {
2 var iframeHeight = Math.min(iframe.contentWindow.window.document.documentElement.scrollHeight, iframe.contentWindow.window.document.body.scrollHeight);
3 $(iframe).height(iframeHeight);
4 }



相关文章:

  • 2021-08-11
  • 2021-11-08
  • 2021-09-14
  • 2022-12-23
猜你喜欢
  • 2021-05-18
  • 2021-10-15
  • 2021-12-30
  • 2021-12-12
  • 2021-06-07
  • 2021-11-20
相关资源
相似解决方案