Html
    Css
    Js

    
                        
* {
	margin:0;
	padding:0;
}
header {
	display:block;
	margin:0 auto;
	width:500px;
	text-align:center;
}
header h1 {
	font-family:Arial;
	font-weight:bold;
}
header #newGameButton {
	display:block;
	margin:20px auto;
	width:100px;
	padding:10px 10px;
	background-color:#8f7a66;
	font-family:Arial;
	color:white;
	border-radius:10px;
	text-decoration:none;
}
header #newGameButton:hover {
	background-color:#9f8b77;
}
header p {
	font-family:Arial;
	font-size:25px;
	margin:20px auto;
}
canvas {
	display:block;
	border:medium double black;
	margin:4px auto;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

贪吃蛇怀旧版小游戏

0