感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style type="text/css">
.MainFrame
{
border: 1px solid burlywood;
margin: 10px auto;
position: relative;
background-color: silver;
}
.MainFramediv
float: left;
margin: 1px;
position: absolute;
/*z-index: -1;*/
.smallDiv
.smallDivblack
/*float: left;*/
/*margin: 1px;*/
/*z-index: 2;*/
#tetris{
width: 50%;
margin: 0 auto;
padding: 0;
/*border: 1px solid silver;*/
#tetris:after{
content: "";
Display: block;
Clear: both;
#control{
border: 1px solid silver;
width: 150px;
height: 578px;
margin-top: 10px;
margin-left: 20px;
padding-top: 30px;
font-size: 24px;
font-weight: 400;
color: blue;
text-align: center;
#level,#regame{
width: 100px;
height: 30px;
border: 1px solid blue;
font-size: 16px;
color: red;
font-weight: 300;
#control p{
margin-top: 200px;
#regame{
margin-top: 100px;
font-weight: 600;
background-color: azure;
#TFrime{
#info{
#nextfigure{
height: 100px;
margin-bottom: 100px;
.drawdiv{
background-color: red;
</style>
<script src="js/GameFrame.js" type="text/javascript" charset="utf-8"></script>
<script src="js/graph.js" type="text/javascript" charset="utf-8"></script>
<script src="js/index.js" type="text/javascript" charset="utf-8"></script>
</head>
<body onLoad="initGame()">
<div id="tetris">
<div id="control">
难度:
<div><select id="level" onChange="changespeed()">
<option value="1000">简单</option>
<option value="500">一般</option>
<option value="200">困难</option>
</select></div>
<input type="button" id="regame" value="重 新 开 始" onClick="regame()" />
<p>
↑:变换<br />
←:左移<br />
→:右移<br />
↓:加速<br />
</p>
</div>
<div id="TFrime"></div>
<div id="info">
下一个图形:
<div id="nextfigure">
<div>分数:<span id="score">0</span></div>
<div style="text-align:center;">
<p><a href="http://www.mycodes.net/" target="_blank"> 王伟豪 2015210823</a></p>
</body>
</html>
输入 JavaScript 代码……
xxxxxxxxxx
输入 CSS 代码……