<script type="text/javascript">
var maxWidth =0;
var maxHeight=0;
var imgHeight;
window.onload=function(){
maxHeight = document.documentElement.clientHeight;
maxWidth = document.documentElement.clientWidth;
document.getElementById("adapp").style.height=maxHeight+"px";
//当浏览器窗口大小改变时,设置显示内容的高度
window.onresize=function(){
changeDivHeight();
}
function changeDivHeight(){
maxHeight = document.documentElement.clientHeight;
document.getElementById("adapp").style.height=maxHeight+"px";
}
}
</script>
时间: 2024-10-05 12:26:50