hhl_project/choice.html
2023-12-24 22:56:12 +08:00

43 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>角色选择</title>
<style>
.image-container {
position: relative;
display: inline-block; /* 让容器的大小适应图片 */
}
.image-container img {
width: 100%; /* 可以根据需要调整 */
height: auto;
}
.button {
position: absolute;
cursor: pointer;
width: 200px;
height: 100px;
font-size: 32px;
}
.button1 { top: 500px; left: 50px; }
.button2 { top: 500px; left: 400px; }
.button3 { top: 500px; left: 800px; }
.button4 { top: 500px; left: 1200px; }
.button5 { top: 500px; left: 1550px; }
</style>
</head>
<body>
<div class="image-container">
<img src="asset/pic/Character_Selection.png" alt="选择角色">
<button class="button button1" onclick="location.href='alexgame.html'">Alexander</button>
<button class="button button2" onclick="location.href='louisgame.html'">Louis XVI</button>
<button class="button button3" onclick="location.href='qinshihuanggame.html'">Qin Shi Huang</button>
<button class="button button4" onclick="location.href='elizabethgame.html'">Elizabeth I</button>
<button class="button button5" onclick="location.href='nixongame.html'">Nixon</button>
</div>
</body>
</html>