首页 > 代码库 > javascript实现贪吃蛇

javascript实现贪吃蛇

<html>
<head>
<style>
body
{
 background:#444;
}
.rect
{
	border:1px solid #94F;
	width:680px;
	height:680px;
}
.gridred
{
width:38px;
height:38px;
background:red;
border:1px #555 solid;
float:left
}
.gridgreen
{
width:38px;
height:38px;
background:green;
border:1px #555 solid;
float:left
}
.gridblue
{
width:38px;
height:38px;
background:blue;
border:1px #555 solid;
float:left
}
.st
{
width:100;
height:40;
font-size: 30;
font-family:Georgia;
color:#F40;
margin:0.5cm;
top:800px;
background:#FFF;
text-align:center;
}
h1.important
{
 color:#FFFF00;
}

</style>
<script type="text/javascript" src=http://www.mamicode.com/"http://code.jquery.com/jquery-1.4.1.min.js"></script>>