父页面的代码

                      <div >
                       </iframe>
                       </div>  

 

子页面的JS代码

 

<script>
$(function(){
    var p_window = window.top;
    alert($(p_window).height());
    var p_demo = window.top.document.getElementById('content');
    var val=window.top.document.getElementById('div5');
    alert($(p_demo).height()); 
    p_demo.style.height="1300px";
    val.style.height="1300px";
})
</script>

 

相关文章: