jquery 框架自适应高度_兼容各大主流浏览器
<script type="text/javascript"> $(function(){ var $iframe=$('#frm'); $iframe.load(function(){ $iframe.height($(this).contents().find("body").height()); $(this).contents().find("body").css("overflowy","hidden"); }) });</script>实际点,直接上代码,请使用jquery框架
页:
[1]