web-js实现五子棋小游戏----代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>经典五子棋</title>
<style>
*{
margin: 0;
padding: 0;
}
.game-all-area{
height: 670px;
width: 100%;
background-color: lightgray;
padding: 30px 0;
}
.game-area{
height: 600px;
width: 600px;
/* background-color: aqua;*/
margin: 0 auto;
position: relative;
}
.cell{
width: 30px;
height: 30px;
background: url("imgs/tenBg.png") center/30px;
float: left;
}
.game-top{
height: 15px;
width: 600px;
background: grey;
position: absolute;
top: 0;
}
.game-bottom{
height: 15px;
width: 600px;
background: grey;
position: absolute;
bottom: 0;
}
.game-left{
height: 600px;
width: 15px;
background: grey;
position: absolute;
left: 0;
}
.game-right{
height: 600px;
width: 15px;
background: grey;
position: absolute;
right: 0;
}
.qiziH{
height: 20px;
width: 20px;
background: black;
border-radius: 50%;
margin: 5px;
position: relative;