程序代码
<script>
<!--
window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
</script>
JavaScript打开网页自动最大化(兼容IE,FF)
最新推荐文章于 2021-07-22 16:47:06 发布
本文介绍了一段用于调整浏览器窗口尺寸的 JavaScript 代码片段。通过检测屏幕可用宽度和高度,该代码能够使浏览器窗口最大化,以充分利用用户的屏幕空间。
8753

被折叠的 条评论
为什么被折叠?



