<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>网页版2048游戏</title>
<style>
/* 游戏棋盘格 */
body{font-family:Arial;text-align:center;}
.game{margin:0 auto;/*margin-top:40px;*/ text-align:center;display:inline-block;}
.game-score{font-size:20px;margin:20px auto;}
.game-container{배경 색상:#bbada0;border-radius: 10px;위치:상대적;}
.game-cell{border-radius:6px; background-color:#ccc0b3;position:absolute;}
.game-num{너비:0px;높이:0px;border-radius :6px;font-weight:bold;font-size:40px;color:#fff;text-align:center;position:absolute;}
.game-num-2{배경:#eee4da;color:#776e65; }
.game-num-4{배경:#ede0c8;color:#776e65;}
.game-num-8{배경:#f2b179;}
.game-num-16{배경:#f59563; }
.game-num-32{배경:#f67c5f;}
.game-num-64{배경:#f65e3b;}
.game-num-128{배경:#edcf72;글꼴 크기:35px ;}
.game-num-256{배경:#edcc61;font-size:35px;}
.game-num-512{배경:#9c0;font-size:35px;}
.game-num -1024{배경:#33b5e5;글꼴 크기:30px;}
.game-num-2048{배경:#09c;글꼴 크기:30px;}
/*游戏结束*/
.game-over {너비:100%;높이:100%;위치:절대;테두리-반경:10px;박스-크기:테두리-박스;z-색인:1;디스플레이:테이블;배경:rgba(123,102,85,0.5)}
.game-over-info{display:table-cell;vertical-align:middle}
.game-over p{font-size:45px;color:#fff;margin:20px auto;}
.game -범위 초과{커서:포인터;배경 색상:rgba(103,82,65,0.6);디스플레이:블록;여백:20px 자동;너비:180px;패딩:10px 10px;글꼴 크기:25px;색상:# f7f2e5;border-radius:10px;border:1px solid #978271;transition:all .2s}
.game-over 범위:hover{배경 색상:rgba(103,82,65,0.7);color:#fff }
.game-hide{display:none;}
</style>
</head>
<body>
<div id="game" class="game">
<div class="game-score">
<blockquote>
ㅋㅋㅋ id="게임_컨테이너 " class="game-container"> <div id="game_over" class="game-over game-hide"> <div class="game-over-info"> <div id="game_over_info"></div> <span id="game_restart">중새开始</span> </div> </div > </div> </div> <script src="js/jquery-1.12.4.min.js"></script> <script src="js/Game2048 .js"></script> <script> Game2048({prefix: 'game', len: 4, size: 100, margin: 20}); </script>