html5源码 母亲节,母亲节H5:非常有创意的5款母亲节H5案例分享
时间: 2024-05-10 14:16:01 浏览: 142
很高兴能为您提供5款创意的母亲节H5案例分享,以下是它们的HTML5源码:
1. 爱的密码
```
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>爱的密码</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #F9F9F9;
font-family: Arial, sans-serif;
}
.container {
width: 100%;
max-width: 640px;
margin: 0 auto;
text-align: center;
padding: 80px 20px;
}
h1 {
font-size: 36px;
font-weight: bold;
color: #333;
margin-bottom: 40px;
}
.fa-heartbeat {
font-size: 60px;
color: #F44336;
margin-bottom: 20px;
}
input {
width: 100%;
max-width: 360px;
height: 50px;
padding: 0 20px;
border: none;
border-radius: 25px;
background-color: #FFF;
margin-bottom: 20px;
font-size: 16px;
color: #333;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}
button {
width: 100%;
max-width: 360px;
height: 50px;
border: none;
border-radius: 25px;
background-color: #F44336;
color: #FFF;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}
button:hover {
transform: translateY(-5px);
box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body>
<div class="container">
<i class="fa fa-heartbeat"></i>
<h1>请输入爱的密码</h1>
<form>
<input type="password" placeholder="密码">
<button type="submit">打开惊喜</button>
</form>
</div>
</body>
</html>
```
2. 每日一言
```
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>每日一言</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #F9F9F9;
font-family: Arial, sans-serif;
}
.container {
width: 100%;
max-width: 640px;
margin: 0 auto;
text-align: center;
padding: 80px 20px;
}
h1 {
font-size: 36px;
font-weight: bold;
color: #333;
margin-bottom: 40px;
}
.fa-heart {
font-size: 60px;
color: #F44336;
margin-bottom: 20px;
}
p {
font-size: 16px;
color: #666;
margin-bottom: 20px;
}
button {
width: 100%;
max-width: 360px;
height: 50px;
border: none;
border-radius: 25px;
background-color: #F44336;
color: #FFF;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}
button:hover {
transform: translateY(-5px);
box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body>
<div class="container">
<i class="fa fa-heart"></i>
<h1>每日一言</h1>
<p>“愿你拥有比阳光明媚,比星光闪耀的一生。”</p>
<button>查看今日一言</button>
</div>
</body>
</html>
```
3. 感谢有你
```
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>感谢有你</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #F9F9F9;
font-family: Arial, sans-serif;
}
.container {
width: 100%;
max-width: 640px;
margin: 0 auto;
text-align: center;
padding: 80px 20px;
}
h1 {
font-size: 36px;
font-weight: bold;
color: #333;
margin-bottom: 40px;
}
.fa-gift {
font-size: 60px;
color: #F44336;
margin-bottom: 20px;
}
p {
font-size: 16px;
color: #666;
margin-bottom: 20px;
}
button {
width: 100%;
max-width: 360px;
height: 50px;
border: none;
border-radius: 25px;
background-color: #F44336;
color: #FFF;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}
button:hover {
transform: translateY(-5px);
box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body>
<div class="container">
<i class="fa fa-gift"></i>
<h1>感谢有你</h1>
<p>谢谢你对我的关爱和付出,祝你母亲节快乐!</p>
<button>查看礼物</button>
</div>
</body>
</html>
```
4. 母亲的花园
```
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>母亲的花园</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #F9F9F9;
font-family: Arial, sans-serif;
}
.container {
width: 100%;
max-width: 640px;
margin: 0 auto;
text-align: center;
padding: 80px 20px;
}
h1 {
font-size: 36px;
font-weight: bold;
color: #333;
margin-bottom: 40px;
}
.fa-leaf {
font-size: 60px;
color: #F44336;
margin-bottom: 20px;
}
p {
font-size: 16px;
color: #666;
margin-bottom: 20px;
}
button {
width: 100%;
max-width: 360px;
height: 50px;
border: none;
border-radius: 25px;
background-color: #F44336;
color: #FFF;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}
button:hover {
transform: translateY(-5px);
box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body>
<div class="container">
<i class="fa fa-leaf"></i>
<h1>母亲的花园</h1>
<p>在这个特别的日子里,送给您一份母亲的花园,愿您永远青春美丽!</p>
<button>查看花园</button>
</div>
</body>
</html>
```
5. 爱的相册
```
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>爱的相册</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #F9F9F9;
font-family: Arial, sans-serif;
}
.container {
width: 100%;
max-width: 640px;
margin: 0 auto;
text-align: center;
padding: 80px 20px;
}
h1 {
font-size: 36px;
font-weight: bold;
color: #333;
margin-bottom: 40px;
}
.fa-photo {
font-size: 60px;
color: #F44336;
margin-bottom: 20px;
}
p {
font-size: 16px;
color: #666;
margin-bottom: 20px;
}
button {
width: 100%;
max-width: 360px;
height: 50px;
border: none;
border-radius: 25px;
background-color: #F44336;
color: #FFF;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}
button:hover {
transform: translateY(-5px);
box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body>
<div class="container">
<i class="fa fa-photo"></i>
<h1>爱的相册</h1>
<p>收下这份小小的礼物,记录我们共同的美好回忆。</p>
<button>查看相册</button>
</div>
</body>
</html>
```
阅读全文