复制代码 代码如下:
<script type="text/javascript">
<!--
$(
function()
{
//iframe高度随内容自动调整
$('.main').load(
function()
{
$(this).height($(this).contents().find("body").attr('scrollHeight'));
}
);
}
);
// -->
</script>
<script type="text/javascript">
<!--
$(
function()
{
//iframe高度随内容自动调整
$('.main').load(
function()
{
$(this).height($(this).contents().find("body").attr('scrollHeight'));
}
);
}
);
// -->
</script>
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
桃源资源网 Design By www.nqtax.com
暂无“jQuery解决iframe高度自适应代码”评论...