Skip to content

Commit

Permalink
添加随机方块
Browse files Browse the repository at this point in the history
  • Loading branch information
llan committed Feb 6, 2017
1 parent ae2bab2 commit 8407421
Show file tree
Hide file tree
Showing 3 changed files with 519 additions and 0 deletions.
53 changes: 53 additions & 0 deletions ninth-step/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
body {
margin: 0;
padding: 0;
}

/*当前俄罗斯方块*/
.activityModel {
border: 1px;
width: 19px;
height: 19px;
background: linear-gradient(70deg, indianred, white);
position: absolute;
}

/*已经掉落的俄罗斯方块*/
.inactiveModel {
border: 1px;
width: 19px;
height: 19px;
position: absolute;
background: linear-gradient(70deg, grey, white);
}

/*画布*/
.site {
position: absolute;
left: 200px;
top: 200px;
width: 200px;
height: 360px;
background-color: black;
}

/*开始与重新开始按钮*/
.start-restart {
padding: .3em .8em;
border: 1px solid rgba(0, 0, 0, .1);
background: #58a linear-gradient(hsla(0, 0%, 100%, .2), transparent);
border-radius: .2em;
box-shadow: 0 .05em .25em rgba(0, 0, 0, .5);
color: white;
text-shadow: 0 -.05em .05em rgba(0, 0, 0, .5);
font-size: 125%;
line-height: 1.5;
text-align: center;
width: 125px;
z-index: 11;
left: 220px;
top: 380px;
position: absolute;
cursor: pointer;
display: none;
}
14 changes: 14 additions & 0 deletions ninth-step/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ninth-step</title>
<link rel='shortcut icon' type='image/x-icon' href='../favicon.ico' />
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div class="site"></div>
<div class="start-restart">restart</div>
<script src="./index.js"></script>
</body>
</html>
Loading

0 comments on commit 8407421

Please sign in to comment.