学习时写了个小游戏 --- 寻找徐峥,模仿的是网页小游戏---寻找房祖名
*{
margin: 0;
padding: 0;
}
#wrap{
width: 600px;
height: 650px;
border: 1px solid black;
margin:0 auto;
position: relative;
}
#time{
width: 110px;
height: 50px;
font-size: 20px;
text-align: center;
line-height: 50px;
float: left;
}
#score{
width: 110px;
height: 50px;
font-size: 20px;
line-height: 50px;
text-align: center;
float: right;
}
#content{
width: 600px;
height: 600px;
clear: both;
display: flex;
flex-wrap: wrap;
}
#content>img{
width: 100%;
height: 100%;
}
#menuGame{
width: 600px;
height: 650px;
background: rgba(0,0,0,0.2);
position: absolute;
left: 0;
top: 0;
}
#start{
width: 200px;
height: 60px;
border-radius: 10px;
background: red;
color: white;
font-size: 30px;
line-height: 60px;
text-align: center;
position: absolute;
left: 50%;
top: 50%;
margin-left: -100px;
margin-top: -30px;
cursor: pointer;
}
剩余时间:20
分数:0
开始游戏
1.jpg 是徐峥,2.jpg 是包贝尔



