赛跑小游戏:es6面向对象应用

class的练习以及class的继承

CSS代码:

.girl{
	width: 79px;
	height: 108px;
	background:url(../images/aisidier.png);
	background-position: 0px -216px;
	position: absolute;
	left: 0;
	top: 100px;
	text-align: center;
}
#info span{
	font-size: 24px;color: red;
}

js代码:

你可能感兴趣的:(前端,html5,css,javascript)