首页 > Web开发 > 详细

Gluttonous Snake.css

时间:2020-07-29 22:04:58      阅读:52      评论:0      收藏:0      [点我收藏+]

/*最外层的盒子*/
.container{
width: 640px;
height: 640px;
/*盒子居中*/
margin: 100px auto;
/*相对定位*/
position: relative;
}
/*两个按钮*/
.btn{
width: 100%;
height: 100%;
/*绝对定位*/
position: absolute;
left: 0;
top: 0;
background-color: rgba(0,0,0,.3);
/*使它放在蛇和食物上*/
z-index: 2;
}
.btn button{
background: none;
/*去边框*/
border: none;
outline: none;
cursor: pointer;
position: absolute;
left: 50%;
top: 50%;
background-size:100%,100% ;
}
.starBtn button{
width: 200px;
height: 90px;
background-image: url(../img/start.png);
margin-left: -100px;
margin-top: -45px;
}
/*隐藏暂停按钮*/
.pauseBtn{
display: none;
}
.pauseBtn button{
width: 70px;
height: 70px;
background-image: url(../img/stop.png);
margin-left: -35px;
margin-top: -35px;
}
#snakeWarp{
width: 600px;
height: 600px;
/*background:lightcyan aqua;*/
background-image: linear-gradient(lightcyan,aqua);
border: 20px solid peru;
position: relative;
}
/*#snakeWarp div{
width: 20px;
height: 20px;
}*/
.snakeHead{
/*background: url();
background-size:cover;*/
background-color:blue ;
}
.snakeBody{
background-color: black;
border-radius: 50%;
}
.food{
/*background: url();
background-size:cover;*/
background-color:greenyellow;

}

Gluttonous Snake.css

原文:https://www.cnblogs.com/weixin2623670713/p/13399312.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!