$(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  阅读(1551)  评论(0)    收藏  举报