我已经当点击在iframe页面上的链接加载一个页面里面..一个iframe,调整父母的身体又名文档有iframe的身体..大小调整网站的身体和iframe在页面链接被点击
Body <------------------------
Iframe |
Page |
Link... Upon Click, resize body --
我如何做到上述?我试过Parent.document.body.style.width =“200px”。并没有奏效。不知道该怎么办。请帮忙!
function Parentresize(id)
{
var newheight = 2000;
var newwidth = 2000;
parent.document.getElementById(id).height= (newheight) + "px";
parent.document.getElementById(id).width= (newwidth) + "px";
}
@sothunders我有相反的情况也脚本。 –