<!DOCTYPE html>
<html>
<head>
<title> Snake! </title>
<link rel="stylesheet" type="text/css" href="style.css"></link>
<body>
<meta charset="UTF-8">
<title>Snake!</title>
<div id="game">
<script src="snake.js" type="text/javascript"></script>
</div>
</body>
</head>
</html>
上記の JavaScript ゲームを作成しましたが、常にページの左上隅に表示されます。ホームページのスタイルを設定する css ページがあります。ゲームをページの別の位置に移動するには、html ページと css ページで何をする必要がありますか?
更新: CSS ページは次のようになります。
body{
background-image:url(nokiaphone.jpg);
background-repeat:no-repeat;
background-position: center top;
}
#game{
position:absolute;
left:1000px;
top:150px;
}