七夕来袭!是时候展现专属于程序员的浪漫了!你打算怎么给心爱的人表达爱意?鲜花礼物?代码表白?还是创意DIY?或者…无论那种形式,快来秀我们一脸吧!
📂文章目录
- 二、📚网站介绍
- 三、🔗网站效果
- ▶️1.视频演示
- 🧩 2.图片演示
- 四、💒 网站代码
- 🧱HTML结构代码
- 🏠CSS样式代码
- 五、🎁更多源码
二、📚网站介绍
📒网站文件方面:html网页结构文件、css网页样式文件、js网页特效文件、images网页图片文件;
📙网页编辑方面:可使用任意HTML编辑软件(如:
Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++
等任意html编辑软件进行运行及修改编辑等操作)。
其中:
(1)📜html文件包含:其中index.html是首页、其他html为二级页面;
(2)📑 css文件包含:css全部页面样式,3D动态效果,雪花飘落等等
(3)📄 js文件包含:页面炫酷效果实现
三、🔗网站效果
▶️1.视频演示
30-结婚倒计时
🧩 2.图片演示
四、💒 网站代码
🧱HTML结构代码
<!--
* @Author: your name
* @Date: 2021-04-09 15:18:51
* @LastEditTime: 2021-04-09 16:13:21
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \结婚倒计时\index.html
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>结婚倒计时</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<div class="banner-container">
<div class="heading">
<h2>小柳 & 小冯</h2>
<h3>我们要结婚了</h3>
<h5>2021年05月20日</h5>
</div>
<div class="countdown styled"></div>
<div class="copyrights">版权所有 © 2021.保留所有权利</div>
</div>
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/jquery.countdown.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
</body>
</html>
🏠CSS样式代码
* {
margin: 0;
padding: 0;
list-style-type: none;
}
a,
img {
border: 0;
}
p {
color: #24298f;
margin: 0 0 1em !important;
font-size: 13px;
}
body {
font-family: "Open Sans", Arial, sans-serif;
font-size: 14px;
font-weight: 300;
line-height: 1.6em;
color: #656565;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
background: #fff;
transition: all 0.3s linear;
-webkit-transition: all 0.3s linear;
-moz-transition: all 0.3s linear;
-o-transition: all 0.3s linear;
}
.banner-container {
background-image: url("../images/bg.jpg");
background-repeat: repeat;
background-size: cover;
font-size: 14px;
height: 100%;
width: 100%;
overflow: hidden;
position: fixed;
text-shadow: 1px 1px rgba(0, 0, 0, 0.3);
}
.heading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
/* margin-top:250px; */
line-height: 60px;
color: #ffffff;
}
.heading h2 {
font-size: 60px;
font-weight: normal;
font-weight: 700;
height: 140px;
line-height: 80px;
}
.heading h3 {
font-size: 28px;
font-weight: 700;
text-shadow: -1px -1px 5px rgba(0, 0, 0, 0.33);
}
.heading h5 {
font-size: 14px;
}
.countdown {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
margin-top: 210px;
line-height: 48px;
}
.styled div span {
display: block;
font-size: 16px;
margin-top: 0;
font-weight: normal;
text-align: center;
background: rgba(255, 255, 255, 0.06);
color: #fff;
margin: 0 9px 8px 9px;
height: 28px;
line-height: 28px;
}
.styled div {
display: inline-block;
margin-left: 10px;
font-size: 30px;
font-weight: normal;
text-align: center;
height: 100px;
text-shadow: none;
vertical-align: middle;
color: #f44336;
margin: 10px 4px;
height: auto;
width: 112px;
border: 1px dashed rgba(255, 255, 255, 0.46);
}
.copyrights {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin-top: 310px;
font-size: 14px;
color: #f44336;
text-align: center;
opacity: 0.6;
}
五、🎁更多源码
1.如果我的博客对你有帮助
请 “👍点赞” “✍️评论” “💙收藏”
一键三连哦!