<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>五子棋</title>
<style>
#board {
width: 500px;
height: 500px;
margin: 0 auto;
border: 1px solid #ccc;
position: relative;
}
.piece {
width: 40px;
height: 40px;
border-radius: 50%;
position: absolute;
cursor: pointer;
}
.black {
background: #333;
}
.white {
background: #fff;
border: 1px solid #ccc;
}
.message {
text-align: center;
font-size: 24px;
margin-top: 20px;
}
</style>
</head>
<body>
<div id="board"></div>
<div class="message">
基于JavaScript的简易五子棋游戏
最新推荐文章于 2024-04-05 00:00:04 发布