js+div实现记忆翻盘类小游戏代码
代码语言:html
所属分类:游戏
代码描述:js+div实现记忆翻盘类小游戏代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.6.1.css">
<link href="https://fonts.googleapis.com/css?family=Orbitron:500,900" rel="stylesheet">
<style>
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
text-transform: capitalize;
font-family: 'Ubuntu', sans-serif;
outline: none;
}
body {
background: -webkit-gradient(linear, left top, right top, from(rgba(4,191,212,0.9)), to(rgba(117,8,161,0.9)));
background: -webkit-linear-gradient(left, rgba(4,191,212,0.9) 0%, rgba(117,8,161,0.9) 100%);
background: -o-linear-gradient(left, rgba(4,191,212,0.9) 0%, rgba(117,8,161,0.9) 100%);
background: linear-gradient(-270deg, rgba(4,191,212,0.9) 0%, rgba(117,8,161,0.9) 100%);
}
body::after {
content: '';
opacity: 0.1;
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
z-index: -1;
}
@-webkit-keyframes rotate {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(8deg);
}
}
.carbon {
background: #2a334c;
border-radius: 4px;
padding: 10px 30px 10px 30px;
width: 65%;
height: 85%;
margin: 60px auto 10px auto;
-webkit-transition: all 2s ease-out;
-o-transition: all 2s ease-out;
transition: all 2s ease-out;
-webkit-box-shadow: 2px 4px 24px black;
box-shadow: 2px 4px 24px black;
}
.tabbar {
height: 50px;
position: relative;
color: white;
padding: 1px;
font-family: 'Orbitron', sans-serif;
}
.tabbar > div {
padding-left: 10px;
position: absolute;
top: 14px;
left: 0;
color: #ff5f56;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0