<iframe src="http://10.0.1.12:10002/admin" id="myiframe" frameborder="0" scrolling="no" onload="changeFrameHeight()" width="100%" height="100%"></iframe>
<script>
function changeFrameHeight(){
var ifm= document.getElementById("myiframe");
ifm.height=document.documentElement.clientHeight;
}
window.onresize=function(){
changeFrameHeight();
}
</script>
站点嵌iframe自适应
猜你喜欢
转载自blog.csdn.net/hqzxsc2006/article/details/76576123
今日推荐
周排行