.mathGameC {
width:800px;
top:0px;
left:0px;
padding:0px;
height:400px;
position:fixed;
z-index:-1;
}
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
overflow:hidden;
}
.clearfix {
zoom:1;
}
.mathGameC .left {
float:left;
width:50%;
height:auto;
z-index:10;
}
.mathGameC .right {
float:right;
top:0px;
width:50%;
height:auto;
z-index:15
}
.mathGameC .left .content {
width:100%;
height:auto;
position:relative;
display:block;
float:left;
margin:20px;
}
.content img {
width:20px;
height:20px;
margin:2px;
}
.mathGameC .right .contents {
width:100%;
height:auto;
text-align:right;
font-size:16px;
position:relative;
float:right;
padding:5px;
margin:0 20px;
}
这个是特意做给我家宝宝玩的连线游戏,宝宝总是让我画很多图案给他连线,累死去,于是就偷懒写了这个连线,有需要的亲可以换上图片给孩子玩,里面涉及到随机数,canvas等。