The following is the content of the main page:
<script type="text/javascript">
function changeFrameHeight(){
var ifm= document.getElementById("iframepage");
ifm.height=document.body.clientHeight + 50;
}
window.onresize=function(){
changeFrameHeight();
}
</script>
<p id="tt">
<p title="首页">
<iframe src="page/home.html" id="iframepage" onload="changeFrameHeight()" style="width:100%;" scrolling="no" frameborder="0"></iframe>
</p>
</p>
When the page is zoomed out, all the contents of home.html cannot be displayed. How should I change it?
<script type="text/javascript">
</script>
Then you have to write the adaptation of the window size in the home page