简易js数独游戏
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>数独</title>
</head>
<style>
.canvasContent{
width: 360px;
min-height: 360px;
border: 3px solid gray;
box-sizing: content-box;
}
.canvas-row{
width: 100%;
}
.cell{
display: inline-block;
width: 40px;
height: 40px;
text-align: center;
border: 1px solid gray;
box-sizing: border-box;
}
.cell:nth-child(3n){
border-right: 3px solid green;
}
.grap-hr{
margin: 0;
padding: 0;
border: none;
border-bottom: 3px solid green;
}
.cell-item{
background: #d7fae9;
}
.cell-color{
border: 1px solid red;
background: #fbd8d8;
}
</style>
<body>
<!-- 按钮操作区域 -->
<button class="" >开始游戏</button>
<button class="" >重新游戏</button>
<select name="选择游戏难度" id="select"></select>
<p>得分<span class="score">0</span></p>
<!-- 游戏区域 -->
<div class="canvasContent" id="canvasContent">
<!-- 游戏渲染区域 -->
</div>
<!-- 提交游戏 -->
<button>提交</button>
</body>
<script type="text/javascript" src="https://www.jq22.com/demo/jsdsgame202301151948/js/create.js"></script>
<script type="text/javascript" src="https://www.jq22.com/demo/jsdsgame202301151948/js/game.js"></script>
<script type="text/javascript" src="https://www.jq22.com/demo/jsdsgame202301151948/js/script.js"></script>
</html>
页:
[1]