1 Star 0 Fork 0

CoderMeow/Snake Game

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.css 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
CoderMeow 提交于 2025-01-30 18:47 +08:00 . upload.
body {
background-color: #1f1f1f;
color: #fff;
margin: auto;
user-select: none;
display: flex;
flex-direction:column;
justify-content: center;
align-items: center;
height: 100vh;
}
#game-box{
background-color: #fff;
width:fit-content;
min-width: 400px;
padding: 20px 35px;
display: none;
}
#start-page{
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
}
#start-button {
font-size: 15pt;
color: #fff;
border: 2px solid #fff;
background: none;
padding: 8px 20px;
cursor: pointer;
}
#start-button:hover {
color: #afafaf;
border-color: #afafaf;
}
#score-box {
color: #1f1f1f;
font-size: x-large;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: 700;
text-align: center;
}
#main-box{
height: fit-content;
width: fit-content;
}
#game-canvas{
width: 420px;
height: 420px;
background-color: #2a2a2a;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/codemiao08/snake-game.git
git@gitee.com:codemiao08/snake-game.git
codemiao08
snake-game
Snake Game
master

搜索帮助