Iframe内部页面高度赋值于其父页面的Iframe标签
文章目录
Iframe内部页面高度赋值于其父页面的Iframe标签,使得该Iframe不存在滚动条,布遮盖子页面的内容:
$('#crowdfunding_iframe',parent.document).attr("height",$(document.body).height());
var height = $(document.body).height() + 30;
if(height < 600){
height = 600;
}
$('#crowdfunding_iframe',parent.document).attr("height",height);
$('#vertical_navigation',parent.document).css("height",height);
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论