标签:
1.根据iframe内容自适应iframe高度.
var height_frame=document.getElementById(‘main‘); height_frame.style.height=height_frame.contentWindow.document.body.scrollHeight+‘px‘;
2.获取iframe内容的url
var height_frame=document.getElementById("main"); var url=height_frame.contentWindow.location.href;
标签:
原文地址:http://www.cnblogs.com/xiuber/p/5775802.html