纯css实现的射击游戏代码
代码语言:html
所属分类:游戏
代码描述:纯css实现的射击游戏代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body{
counter-reset:birds;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
overflow:hidden;
}
/*hide checkbox*/
input{position:fixed; left:-10px; top:-10px;}
h1{margin:0; text-align:center;}
h2{position:fixed; right:20px; bottom:0; font-size:18px; color:red;}
/*play area*/
.wrapper{
height:500px;
background: -webkit-linear-gradient(top, hsla(210,70%,80%,1) 0%,hsla(210,50%,100%,1) 100%);
position:relative;
cursor:crosshair;
}
/*count dead birds.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0