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