- 绑定onload函数
onload="this.height=this.contentWindow.document.body.scrollHeight;"
- 切换iframe的src前,更改它的高度
$("#contentFrame0").attr('height', 'auto');
darkclouds 2020-08-08 21:40 原文
onload="this.height=this.contentWindow.document.body.scrollHeight;"
$("#contentFrame0").attr('height', 'auto');