iyixiGame/src/iyixiGames.miniGame/Views/Games/PlayGame.cshtml

61 lines
1.5 KiB
Plaintext

@{
ViewData["Title"] = "Games";
Layout = "";
}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>正在玩: 太空冒险 - 游戏天堂</title>
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/theme.css">
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
background: #000;
}
.game-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.back-button {
position: fixed;
top: 20px;
left: 20px;
z-index: 1000;
background: rgba(0,0,0,0.7);
color: white;
padding: 10px 15px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
display: flex;
align-items: center;
}
.back-button:hover {
background: rgba(0,0,0,0.9);
}
iframe {
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
<a href="/detail.html?id=game1" class="back-button">
🔙
</a>
<div class="game-container">
<iframe src="/games/game1/index.html" allowfullscreen></iframe>
</div>
<script src="/js/script.js"></script>
</body>
</html>