javascript自动适应的iframe高度

//设置自适应高度
function setFrameHeight(){
    document.all("basedmapFrame1").height = basedmapFrame1.document.body.scrollHeight;
    }

其中,basedmapFrame1为iframename 属性

你可能感兴趣的:(JavaScript)