style: format html
This commit is contained in:
parent
a95b1cef1f
commit
ad85061911
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>餐厅游戏</title>
|
||||
<title>秦始皇餐厅</title>
|
||||
<style>
|
||||
body {
|
||||
background-image: url('src/pic/desktop.png'); /* 替换为您的餐厅背景图片路径 */
|
||||
|
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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user