style: format html
This commit is contained in:
20
index.html
20
index.html
@@ -1,10 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>游戏开始页面</title>
|
||||
<style>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>秦始皇餐厅</title>
|
||||
<style>
|
||||
body {
|
||||
width: 1280px;
|
||||
height: 731px;
|
||||
@@ -25,14 +25,14 @@
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<button id="start-button" onclick="startGame()"></button>
|
||||
<script>
|
||||
</head>
|
||||
<body>
|
||||
<button id="start-button" onclick="startGame()"></button>
|
||||
<script>
|
||||
function startGame() {
|
||||
// 这里可以添加进入游戏的代码,例如跳转到游戏页面
|
||||
window.location.href = 'game.html'; // 假设游戏页面为game.html
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user