[HTML] 纯文本查看 复制代码
贪吃蛇游戏
#game-board {
width: 600px;
height: 600px;
border: 1px solid #000;
position: relative;
margin: 0 auto;
}
.snake-node {
width: 20px;
height: 20px;
background-color: #000;
position: absolute;
}
#food {
width: 20px;
height: 20px;
background-color: red;
position: absolute;
}
#score {
text-align: center;
margin-top: 20px;
}
#pause-btn {
display: block;
margin: 10px auto;
}
#restart-btn {
display: block;
margin: 10px auto;
}
贪吃蛇游戏
作者: fei5788
得分:0
暂停
重新开始