<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #f2f2f2;
text-align: center;
}
.container {
display: inline-block;
margin-top: 100px;
}
.go-button {
background-color: #ff6347;
color: white;
font-size: 24px;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
.icons {
display: flex;
justify-content: space-around;
margin-top: 20px;
}
.icon {
width: 80px;
height: 80px;
background-color: #ff6347;
color: white;
font-size: 18px;
line-height: 80px;
border-radius: 50%;
}
.score {
margin-top: 20px;
font-size: 18px;
}
</style>
</head>
<body>
<div class="container">
<h1>抽奖游戏</h1>
<button class="go-button">GO</button>
<div class="icons">
<div class="icon">30</div>
<div class="icon">10</div>
<div class="icon">5</div>
<div class="icon">2</div>
</div>
<div class="score">9997</div>
</div>
</body>
</html><!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #f2f2f2;
text-align: center;
}
.container {
display: inline-block;
margin-top: 100px;
}
.go-button {
background-color: #ff6347;
color: white;
font-size: 24px;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
.icons {
display: flex;
justify-content: space-around;
margin-top: 20px;
}
.icon {
width: 80px;
height: 80px;
background-color: #ff6347;
color: white;
font-size: 18px;
line-height: 80px;
border-radius: 50%;
}
.score {
margin-top: 20px;
font-size: 18px;
}
</style>
</head>
<body>
<div class="container">
<h1>抽奖游戏</h1>
<button class="go-button">GO</button>
<div class="icons">
<div class="icon">30</div>
<div class="icon">10</div>
<div class="icon">5</div>
<div class="icon">2</div>
</div>
<div class="score">9997</div>
</div>
</body>
</html><!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #f2f2f2;
text-align: center;
}
.container {
display: inline-block;
margin-top: 100px;
}
.go-button {
background-color: #ff6347;
color: white;
font-size: 24px;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
.icons {
display: flex;
justify-content: space-around;
margin-top: 20px;
}
.icon {
width: 80px;
height: 80px;
background-color: #ff6347;
color: white;
font-size: 18px;
line-height: 80px;
border-radius: 50%;
}
.score {
margin-top: 20px;
font-size: 18px;
}
</style>
</head>
<body>
<div class="container">
<h1>抽奖游戏</h1>
<button class="go-button">GO</button>
<div class="icons">
<div class="icon">30</div>
<div class="icon">10</div>
<div class="icon">5</div>
<div class="icon">2</div>
</div>
<div class="score">9997</div>
</div>
</body>
</html><!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #f2f2f2;
text-align: center;
}
.container {
display: inline-block;
margin-top: 100px;
}
.go-button {
background-color: #ff6347;
color: white;
font-size: 24px;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
.icons {
display: flex;
justify-content: space-around;
margin-top: 20px;
}
.icon {
width: 80px;
height: 80px;
background-color: #ff6347;
color: white;
font-size: 18px;
line-height: 80px;
border-radius: 50%;
}
.score {
margin-top: 20px;
font-size: 18px;
}
</style>
</head>
<body>
<div class="container">
<h1>抽奖游戏</h1>
<button class="go-button">GO</button>
<div class="icons">
<div class="icon">30</div>
<div class="icon">10</div>
<div class="icon">5</div>
<div class="icon">2</div>
</div>
<div class="score">9997</div>
</div>
</body>
</html>
看着像是 html 抽奖 Demo,不过小游戏一般是写在 js 脚本内的
t