iframe框架调用高度自适应方法

634 ℃

<iframe frameborder="0" src="https://ipkd.cn/" class="iframe" frameborder="0" id="test" onload="this.height=100" width="762px" scrolling="no"></iframe><script type="text/javascript">function reinitIframe(){var iframe = document.getElementById("test");try{var bHeight = iframe.contentWindow.document.body.scrollHeight;var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;var height = Math.max(bHeight, dHeight);iframe.height = height;console.log(height);}catch (ex){}}window.setInterval("reinitIframe()", 200);</script>

js如何实现两个iframe之间传值

iframe开发admin后台

js通过attachEvent判断iframe是否加载完成

完美解决el-table设置高度和合计showsummary冲突不显示问题

el-table设置高度后合计showsummary不显示解决方法

标签: iframe, 高度

上面是“iframe框架调用高度自适应方法”的全面内容,想了解更多关于 vuejs 内容,请继续关注web建站教程。

当前网址:https://m.ipkd.cn/webs_820.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

Trae:新一代免费的AI编程工具
帝国CMS GBK转UTF-8引出现乱码如何解决
php语法中如何利用unset()函数删除数组中的指定值
浅谈新手站为什么要和优质网站交换友情链接?
帝国cms技巧之内容页的smalltext字数控制方法
js计算2个时间的时间差(毫秒、天、时、分、秒)