<iframe >
</iframe>
<script type="text/javascript">

    $(function () {
        try {
            var frame = document.getElementById("contentframe");
            frame.onreadystatechange = function () {
                if (this.readyState == "complete")

                    var ifm = document.getElementById("contentframe");
                var subWeb = document.frames ? document.frames["contentframe"].document : ifm.contentDocument;
                if (ifm != null && subWeb != null) {
                    ifm.height = subWeb.body.scrollHeight;
                }
            }

        }
        catch (err) {            
            $("#contentframe").attr("height", 1000);
        }
    })
</script>

 

相关文章:

  • 2021-06-27
  • 2022-02-18
  • 2021-11-30
  • 2021-11-18
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2021-08-28
  • 2022-02-11
  • 2021-07-24
  • 2021-05-16
相关资源
相似解决方案