在iframe内的页面里加:
function changeIframeHeight() //自动改变 Iframe 的高度
{
if(top != self)
{
window.parent.document.getElementById(self.name).height = document.body.scrollHeight;
}
}
function window.onload()
{
changeIframeHeight(); //改变 Iframe 高
}
function changeIframeHeight() //自动改变 Iframe 的高度
{
if(top != self)
{
window.parent.document.getElementById(self.name).height = document.body.scrollHeight;
}
}
function window.onload()
{
changeIframeHeight(); //改变 Iframe 高
}