zeze
<iframe id="course_content" style="width:100%;margin:5px 0 0;" scrolling="no" src="<?php ?>" ></iframe>
 <script>
      $("#course_content").load(function() {
          var iframeHeight = $(this).contents().find("div.para").height();
          if(iframeHeight<180)
          {
              var iframeHeight = $(this).contents().find("body").height();
              $(this).height(iframeHeight+30);
          }
          else{
              //alert(iframeHeight+160);
              $(this).height(iframeHeight+160);
          }
      });
       </script> 

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2021-07-28
  • 2021-06-12
  • 2022-12-23
相关资源
相似解决方案