帮我写一个充值缴费的页面,上端是输入电话号码的输入框(深蓝色框),下面是选择充值话费还是流量,帮我加上跳转功能。充值部分是可以几个选择按钮框,一行三个选择按钮,可以选择不同的额度,在选择后,会变成蓝色,来确定操作。请模仿微信里移动充值的充值页面,再帮我美化一下界面,合理分配控件位置,主色调是蓝色。
时间: 2023-07-15 15:12:31 浏览: 117
实用的充值页面。带提示框!
好的,以下是一个简单的HTML页面示例,你可以根据需要进行修改和美化:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>充值缴费</title>
<style>
body {
background-color: #f5f5f5;
font-family: Arial, sans-serif;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
border: 1px solid #e5e5e5;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #333;
}
label {
display: block;
margin-bottom: 10px;
font-weight: bold;
color: #333;
}
input[type="tel"], select {
display: block;
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #fff;
box-sizing: border-box;
font-size: 16px;
margin-bottom: 20px;
}
.row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.card {
width: calc(33.33% - 10px);
background-color: #fff;
border-radius: 4px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
margin-bottom: 20px;
cursor: pointer;
transition: all 0.3s ease;
}
.card:hover {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}
.card.selected {
background-color: #3fc1c9;
color: #fff;
}
.card .header {
padding: 20px;
background-color: #3fc1c9;
color: #fff;
text-align: center;
font-size: 20px;
}
.card .body {
padding: 20px;
text-align: center;
font-size: 18px;
color: #333;
}
.button {
display: inline-block;
padding: 10px 20px;
background-color: #3fc1c9;
color: #fff;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
}
.button:hover {
background-color: #36a2ab;
}
</style>
</head>
<body>
<div class="container">
<h1>充值缴费</h1>
<form action="#" method="post">
<label>请输入电话号码</label>
<input type="tel" name="phone" placeholder="请输入电话号码">
<label>请选择充值类型</label>
<div class="row">
<div class="card">
<div class="header">话费</div>
<div class="body">100元</div>
</div>
<div class="card">
<div class="header">话费</div>
<div class="body">50元</div>
</div>
<div class="card">
<div class="header">话费</div>
<div class="body">30元</div>
</div>
<div class="card">
<div class="header">流量</div>
<div class="body">10G</div>
</div>
<div class="card">
<div class="header">流量</div>
<div class="body">5G</div>
</div>
<div class="card">
<div class="header">流量</div>
<div class="body">2G</div>
</div>
</div>
<button type="submit" class="button">立即充值</button>
</form>
</div>
</body>
</html>
```
阅读全文