$(iframe).contents().find("body").html("");

 

iframe自适应高度

     $("#AllDescription").load(function(){
                var mainheight = $(this).contents().find("body").height()+30;
                $(this).height(mainheight);
                });

posted on 2014-08-21 14:52  hegang  阅读(1507)  评论(0编辑  收藏  举报