JavaScript之2048 html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
<link rel="stylesheet" type="text/css" href="style.css">
<title>2048</title>
</head>
<body>
<div class="container" id="container">
<div class="header">
<h1 class="game-title">2048</h1>
<div class="game-info">
<span id="game-best-score">0</span>
<span id="game-score">0</span>
<button id="newGame" type="button">New Game</button>
</div>
</div>
<div class="game-container" id="game-container">
<div class="game-result">
<p></p>
</div>
<div class="gird-container">
<div class="gird-row">
<div class="gird-col"></div>
<div class="gird-col"></div>
<div class="gird-col"></div>
<div class="gird-col"></div>
</div>
<div class="gird-row">
<div class="gird-col"></div>
<div class="gird-col"></div>
<div class="gird-col"></div>
<div class="gird-col"></div>
</div>
<div class="gird-row">
<div class="gird-col"></div>
<div class="gird-col"></div>
<div class="gird-col"></div>
<div class="gird-col"></div>
</div>
<div class="gird-row">
<div class="gird-col"></div>
<div class="gird-col"></div>
<div class="gird-col"></div>
<div class="gird-col"></div>
</div>
</div>
<div class="tile-container" id="tile-container"></div>
</div>
</div>
<script type="text/javascript" src="main.js"></script>
</body>
</html>