0

I am trying to set a browser window to a particular size using the code below. When I load the page the size doesn't change. I am looking at it through firefox,but I also looked at it through safari but still there is no change. I am following several examples that i found online, and it seems like i am doing everything that was in the tutorial. What am i doing wrong????

<!DOCTYPE html>
<html>
<head>

<style>
body 
{
background-image:url('tri_tespic.jpg');
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center; 

}
</style>
<script type="text/javascript">
function changeScreenSize(w,h)
     {
       window.resizeTo( w,h )
     }
</script>
</head>

<body onload="changeScreenSize(818,50)">

</body>

</html>
4

1 回答 1

2

当窗口处于顶层(即不是弹出窗口)时,无法调整窗口大小

于 2013-03-26T20:56:39.483 回答