function setIframeHeight() { var iframe=document.getElementById("iframe_id"); iframe.height="500px";//默认高度为500 var subcontent=document.frames? document.frames["iframe_id"].document:iframe.contentDocument; setHeight=Math.max(s…
If you cannot hear the sound of the genuine in you, you will all of your life spend your days on the ends of strings that somebody else pulls. 跨域iframe的高度自适应 1. 跨子域的iframe高度自适应 2. 完全跨域的iframe高度自适应 同域的我们可以轻松的做到 1. 父页面通过iframe的contentDocument或document属…