iframe自适应高度

PHP 林涛 5117℃ 0评论
iframe自适应高度的代码,主要是onload后面的这部分:
<iframe id="frame_content" src="iframe_b.html" scrolling="no" frameborder="0"
 onload="this.height=this.contentWindow.document.documentElement.scrollHeight"></iframe>

 

如需转载请注明: 转载自26点的博客

本文链接地址: iframe自适应高度

转载请注明:26点的博客 » iframe自适应高度

喜欢 (0)
发表我的评论
取消评论

表情