1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > 七夕情人节表白网页代码大全(浪漫的html表白源代码)

七夕情人节表白网页代码大全(浪漫的html表白源代码)

时间:2023-04-28 21:07:55

相关推荐

七夕情人节表白网页代码大全(浪漫的html表白源代码)

❤ 精彩专栏推荐👇🏻👇🏻👇🏻

💂 作者主页: 【进入主页—🚀获取更多源码】

🎓 web前端期末大作业: 【📚HTML5网页期末作业 (1000套) 】

🧡 程序员有趣的告白方式:【💌HTML七夕情人节表白网页制作 (125套) 】

七夕来袭!是时候展现专属于程序员的浪漫了!你打算怎么给心爱的人表达爱意?鲜花礼物?代码表白?还是创意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.视频演示

76-谢谢你的爱

🧩 2.图片演示

四、💒 网站代码

🧱HTML结构代码

<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><link rel="stylesheet" href="./css/index.css?v=3"><title>点击小心心</title></head><body><div class="content"><audio src="https://love.iguan.xin/ceshi/%E5%98%9F%E5%98%9F%E5%98%9F%E5%98%9F.mp3" id="bg-music"></audio><div class="zero"><div class="loading">加载中...</div></div><div class="one"><div class="iceCsy_pic flex"><div class="font flex"><iceCsy><p>点击小心心开始观赏吧</p><a class="font_csy">@ 你的名字</a><p class="heart"><a class='topLeft'></a><a class='topRight'></a><a class='bottom'></a></p></iceCsy></div></div></div><div class="two" style="display: none;"><div class="font_write"><p>多热烈的白<span>羊</span></p><p><span>多</span>么善良</p><p>那么<span>抽</span>象</p></div><div class="show_pic flex"><div class="center_content"><img src="./images/05.jpg" class="img1"><img src="./images/06.jpg" class="img2"><img src="./images/07.jpg" class="img3"><div class="span"><span class="span1"></span></div><div class="span"><span class="span2"></span></div><div class="span"><span class="span3"></span></div></div></div></div><div class="two_2" style="display: none;"><div class="show_pic flex"><div class="center_content"><img src="./images/01.jpg" class="img1"><img src="./images/02.jpg" class="img2"><img src="./images/03.jpg" class="img3"><div class="span"><span class="span1"></span></div><div class="span"><span class="span2"></span></div><div class="span"><span class="span3"></span></div></div></div><div class="font_write"><p>青春一记荒<span>唐</span></p><p>疯<span>狂</span></p><p>要迷人且<span>倔强</span></p></div></div><div class="three" style="display: none;"><div class="left_bottom"><div class="opacity_div d_red"><img src="./images/05.jpg" class="img_move1"></div><div class="opacity_div green"><img src="./images/05.jpg" class="img_move2"></div><div class="opacity_div pink"><img src="./images/05.jpg" class="img_move3 rotate180"></div><div class="opacity_div org"><img src="./images/05.jpg" class="img_move4 rotate180"></div><div class="opacity_div d_green"><img src="./images/05.jpg" class="img_move5 rotate180"></div><div class="opacity_div red"><img src="./images/05.jpg" class="img_move6 rotate180"></div><div class="opacity_div block"><img src="./images/05.jpg" class="img_move7 rotate180"></div><div class="opacity_div blue"><img src="./images/05.jpg" class="img_move8 rotate180"></div><div class="opacity_div yellow"><img src="./images/05.jpg" class="img_move9 rotate180"></div></div><div class="font_show font1">愿得一人<span>心</span></div><div class="font_show font2">白首不分<span>离</span></div><div class="font_show font3">多想唱给你<span>听</span></div><div class="start"><div class="color"><div class="small_div d_red"></div><div class="small_div green"></div><div class="small_div pink"></div><div class="small_div org"></div><div class="font">都是你</div></div><div class="beautiful"><img src="./images/05.jpg"></div></div></div><div class="four" style="display: none;"><div class="left flex"><div class="left_pic"><img src="./images/08.jpg" class="pic1"><img src="./images/09.jpg" class="pic2"><img src="./images/10.jpg" class="pic3"><img src="./images/11.jpg" class="pic4"><img src="./images/12.jpg" class="pic5"><img src="./images/13.jpg" class="pic6"><img src="./images/06.jpg" class="pic7"><img src="./images/03.jpg" class="pic8"></div><div class="right_font"><p>I want see for you</p><p>but don't expression</p><p>no leave me</p><p>i love you</p></div></div></div><div class="five" style="display: none;"><div class="left flex"><div class="right_font"><p>Can you feel the love</p><p>remotest corners of the globe</p><p>Never abandon</p><p>love you forever</p></div><div class="left_pic"><img src="./images/08.jpg" class="pic1"><img src="./images/09.jpg" class="pic2"><img src="./images/10.jpg" class="pic3"><img src="./images/11.jpg" class="pic4"><img src="./images/12.jpg" class="pic5"><img src="./images/13.jpg" class="pic6"><img src="./images/06.jpg" class="pic7"><img src="./images/03.jpg" class="pic8"></div></div></div><div class="end" style=""><div class="top"><div class="font"><span>iceXxx</span><span>真是</span></div></div><div class="bottom"><div class="font"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="s">太</span><span>好</span><span>了</span></div><div class="end"><p>我知道遇见你不容易</p><p>错过了会很可惜</p><p>反正最好不过余生只有你</p><p>最坏不过余生都是回忆</p><p>完</p></div></div></div></div><script src="./js/jquery-1.9.1.min.js" type="text/javascript"></script><script src="./js/index.js" type="text/javascript"></script><script src="./js/function.js" type="text/javascript"></script></body></html>

🏠CSS样式代码

/** {word-wrap:break-word; word-break:break-all; padding: 0; margin: 0;}*/* {padding: 0; margin: 0;}ul, li, a {text-decoration: none; list-style: none;}a {color: #0397ff;}body {background: #edf4ff; width: 100%; height: 100%;}@font-face {font-family: 华康娃娃;src: url('../font/hkww.ttf');}.content {margin: 0 auto; background: url(../images/bg.jpg) no-repeat; background-size: 100% 100%; overflow: hidden; position: relative;}.flex {display: flex; display: -webkit-flex; align-items: center;}.content .zero {width: 100%; height: 100%; position: absolute; z-index: 9999;}.content .zero .loading {width: 100%; height: auto; font-size: 1.5vh; color: #8b271c; bottom: 0; text-align: right; position: absolute;}/**************************************************************** 第一版 */.content .one {height: 100%; display: flex; display: -webkit-flex; align-items: flex-start;}.content .one .iceCsy_pic {height: 35%; width: 100%; position: relative;}/* 字体 */.content .one .iceCsy_pic .font {height: 100%; width: 50%; left: 25%; top: 100%; position: absolute;}.content .one .iceCsy_pic .font iceCsy{width: 100%; height: 100%;}.content .one .iceCsy_pic .font p{color: #8b7508; font-family: 华康娃娃; letter-spacing: 2px; text-align: center; font-size: 4vh; font-weight: 900;}.content .one .iceCsy_pic .font .font_csy {font-size: 4vh; background: #8b271c; padding: 1vh 5px; font-weight: 300; color: #fff; display: block; width: 60%; margin-left: 17.5%; margin-top: 10%; text-align: center; font-family: 华康娃娃; height: 16%; line-height: 100%;}/* 字体end *//* 爱心 */.content .one .iceCsy_pic .font .heart {width: 2vh;height: 2vh; position: relative; animation-name: shake; animation-duration: .9s; animation-iteration-count: infinite; margin: 10% 43%;}.content .one .iceCsy_pic .font .heart a {width: 100%; height: 100%; position: absolute; background: #FF5A5A; animation-name: shadow; animation-duration: .9s; animation-iteration-count: infinite; display: inline-block;}.content .one .iceCsy_pic .font .heart .topLeft, .topRight {border-radius: 100px 100px 0 0;}.content .one .iceCsy_pic .font .heart .topLeft {transform: translate(-1.19vh, 0) rotate(-45deg);}.content .one .iceCsy_pic .font .heart .topRight {transform: translate(1.19vh, 0) rotate(45deg);}.content .one .iceCsy_pic .font .heart .bottom {transform: translate(0vh, 1.28vh) rotate(45deg) scale(.9, .9);}/* 定义动画 */@keyframes shake {from {transform: scale(.9, .9);}to {transform: scale(1.1, 1.1);}}@keyframes shadow {to {box-shadow: 0px 0px 30px #FF5A5A;}}/* 爱心end *//**************************************************************** 第一版end *//**************************************************************** 第二版(初遇见) */.content .two {height: 100%; display: flex; display: -webkit-flex; align-items: flex-start;}.content .two .font_write {height: 100%; width: 70%; position: relative; left: 15%; top: 25%; opacity: 0;transition: All 1s ease-in-out;-webkit-transition: All 1s ease-in-out;-moz-transition: All 1s ease-in-out;-o-transition: All 1s ease-in-out;}.content .two .font_write p {width: 100%; font-size: 2vh; font-family: 微软雅黑; text-align: left; height: 10%; color: #333;}.content .two .font_write p:first-child {margin-top: 20%;}.content .two .font_write p span {width: 100%; font-size: 3.5vh; color: #8b271c; font-family: 微软雅黑; text-align: left; height: 5%;}.content .two .show_pic {height: 100%; width: 100%;}.content .two .show_pic .center_content {height: 65%; width: 100%; position: relative; left: 20%;transition: All 1s ease-in-out;-webkit-transition: All 1s ease-in-out;-moz-transition: All 1s ease-in-out;-o-transition: All 1s ease-in-out;}.content .two .show_pic .center_content img {height: auto; position: absolute; width: 100%; left: -20%; display: none; top: 0%;}.content .two .show_pic .center_content .span {position: absolute; height: 100%; width: 10%;}.content .two .show_pic .center_content .span span {display: block; width: 4vh; height: 4vh; position: absolute; border-radius: 50%; background: #333;transition: All .5s ease-in-out;-webkit-transition: All .5s ease-in-out;-moz-transition: All .5s ease-in-out;-o-transition: All .5s ease-in-out;} /* top: -70%; */.content .two .show_pic .center_content .span1 {left: 165%; top: 130%;} /* top: 50%; left: -40%; 2vh 2vh*/.content .two .show_pic .center_content .span2 {left: 800%; top: 100%;} /* top: 50%; left: 300%; 2vh 2vh*/.content .two .show_pic .center_content .span3 {left: 5%; top: -40%;} /* top: 25%; left: 250%; 2vh 2vh*//**************************************************************** 第二版end *//**************************************************************** 第二版(2)(初遇见) */.content .two_2 {height: 100%; display: flex; display: -webkit-flex; align-items: flex-start;}.content .two_2 .font_write {height: 100%; width: 70%; position: relative; left: 15%; top: 25%; opacity: 0;transition: All 1s ease-in-out;-webkit-transition: All 1s ease-in-out;-moz-transition: All 1s ease-in-out;-o-transition: All 1s ease-in-out;}.content .two_2 .font_write p {width: 100%; font-size: 2vh; font-family: 微软雅黑; text-align: left; height: 10%; color: #333;}.content .two_2 .font_write p:first-child {margin-top: 20%;}.content .two_2 .font_write p span {width: 100%; font-size: 3.5vh; color: #8b271c; font-family: 微软雅黑; text-align: left; height: 5%;}.content .two_2 .show_pic {height: 100%; width: 100%;}.content .two_2 .show_pic .center_content {height: 65%; width: 100%; position: relative; left: 20%;transition: All 1s ease-in-out;-webkit-transition: All 1s ease-in-out;-moz-transition: All 1s ease-in-out;-o-transition: All 1s ease-in-out;}.content .two_2 .show_pic .center_content img {height: auto; position: absolute; width: 100%; left: -20%; display: none; top: 0%;}.content .two_2 .show_pic .center_content .span {position: absolute; height: 100%; width: 10%;}.content .two_2 .show_pic .center_content .span span {display: block; width: 4vh; height: 4vh; position: absolute; border-radius: 50%; background: #333;transition: All .5s ease-in-out;-webkit-transition: All .5s ease-in-out;-moz-transition: All .5s ease-in-out;-o-transition: All .5s ease-in-out;} /* top: -70%; */.content .two_2 .show_pic .center_content .span1 {left: -265%; top: 75%;} /* top: 45%; left: 35%; 2vh 2vh*/.content .two_2 .show_pic .center_content .span2 {left: 580%; top: 130%;} /* top: 55%; left: 380%; 2vh 2vh*/.content .two_2 .show_pic .center_content .span3 {left: 600%; top: -40%;} /* top: 30%; left: 300%; 2vh 2vh*//**************************************************************** 第二版(2)end *//**************************************************************** 第三版(都是你) */.content .three {width: 100%; height: 100%; position: relative;}.content .three .left_bottom {position: absolute; width: 380%; height: 44%; top: 28%; left: 40%; opacity: 0;}.content .three .left_bottom div {height: 100%; width: 10%; float: left; margin-right: 0.4%; box-shadow: 4px 1px 4px #aaa;}.content .three .left_bottom div img {width: 94%; height: 94%; padding: 2.5% 3%; border-radius: 7px; opacity: 0;}.content .three .left_bottom div .rotate180 {transform: rotate(180deg);}.content .three .font_show {position: absolute; font-size: 3vh; letter-spacing: 1px; opacity: 0;transition: All 2s ease-in-out;-webkit-transition: All 2s ease-in-out;-moz-transition: All 2s ease-in-out;-o-transition: All 2s ease-in-out;}.content .three .font_show span {font-size: 5vh; color: #8b271c;}.content .three .font1 {bottom: 5%; left: 10%;}.content .three .font2 {left: 5%; top: 10%;}.content .three .font3 {bottom: 5%; right: 10%;}.content .three .d_red {background: #FF90A5;}.content .three .green {background: #83AF9B;}.content .three .pink {background: #FC9D9A;}.content .three .org {background: #F9CDAD;}.content .three .d_green {background: #8BB495;}.content .three .red {background: #AF6767;}.content .three .block {background: #C9BA83;}.content .three .blue {background: #71969F;}.content .three .yellow {background: #F0DE8E;}.content .three .start {width: 100%; height: 100%; position: absolute; left: 0%;}.content .three .start .color {width: 100%; height: 100%; position: relative; left: 10%;}.content .three .start .color div {position: relative;}.content .three .start .color .small_div {width: 8%; height: 8%; box-shadow: 1px 1px 0px #aaa; float: left; top: 46%; margin-right: 1%;}.content .three .start .color .font {font-size: 7vh; color: #fff; top: 43%;}.content .three .start .beautiful{top: 28%; left: 53%; width: 45%; position: absolute;}.content .three .start .beautiful img{width: 85%; height: 85%;}/**************************************************************** 第三版end *//**************************************************************** 第四版 */.content .four {width: 100%; height: 100%; position: relative;}.content .four .left {width: 100%; height: 100%;}.content .four .left .left_pic {width: 65%; height: 100%;}.content .four .left .left_pic img {position: absolute; height: auto;}.content .four .left .left_pic .pic1 {width: 70%; left: 56%; top: 135%; transform: skew(-65deg, 28deg) rotate(2deg); height: 34%; box-shadow: 3px 2px 3px #555;}.content .four .left .left_pic .pic2 {width: 49%; left: 62%; top: -65%; transform: skew(6deg, -3deg) rotate(-3deg);}.content .four .left .left_pic .pic3 {width: 24%; left: -30%; top: -28%; transform: skew(0deg, 10deg) rotate(-11deg);}.content .four .left .left_pic .pic4 {width: 72%; left: 102%; top: 50%; transform: rotate(-4deg); box-shadow: 2px 3px 3px #555;}.content .four .left .left_pic .pic5 {width: 15%; left: -17%; top: 30%; box-shadow: 3px 3px 3px #555;}.content .four .left .left_pic .pic6 {width: 40%; left: 20%; top: 120%; transform: rotate(14deg); border-radius: 5px;}.content .four .left .left_pic .pic7 {width: 109%; left: -6%; transform: rotate(8deg); border-radius: 5px; height: 111%; top: 0%; display: none;}.content .four .left .left_pic .pic8 {width: 30%; left: 12%; top: 120%; transform: skew(-2deg, -11deg) rotateX(40deg);}.content .four .left .right_font {width: 33%; height: 100%; margin-left: 2%; opacity: 0;transition: All 2s ease-in-out;-webkit-transition: All 2s ease-in-out;-moz-transition: All 2s ease-in-out;-o-transition: All 2s ease-in-out;}.content .four .left .right_font p {font-size: 2vh; color: #444; font-family: Tahoma;}.content .four .left .right_font p:first-child {font-size: 3.5vh; color: #2db5ec; margin-bottom: 2%; margin-top: 90%;}/**************************************************************** 第四版end *//**************************************************************** 第五版 */.content .five {width: 100%; height: 100%; position: relative;}.content .five .left {width: 100%; height: 100%;}.content .five .left .left_pic {width: 65%; height: 100%;}.content .five .left .left_pic img {position: absolute; height: auto;}.content .five .left .left_pic .pic1 {width: 20%; height: 16%; transform: skew(56deg, -25deg) rotate(4deg); top: 109%; left: 70%; box-shadow: 0px 1px 2px #444;}.content .five .left .left_pic .pic2 {width: 30%; height: 30%; transform: skew(1deg, 6deg) rotate(-22deg); top: -40%; left: 30%;}.content .five .left .left_pic .pic3 {width: 23%; height: 25%; transform: rotate(-32deg); top: -34%; left: 80%;}.content .five .left .left_pic .pic4 {width: 25%; height: 24%; transform: rotate(14deg); top: 106%; left: 17%; box-shadow: 0px 1px 2px #444;}.content .five .left .left_pic .pic5 {width: 10%; top: 55%; left: 102%; box-shadow: 1px 1px 2px #444;}.content .five .left .left_pic .pic6 {width: 30%; height: 25%; transform: skew(13deg, 17deg); top: 109%; left: 60%;}.content .five .left .left_pic .pic7 {width: 104%; left: 0%; transform: rotate(-8deg); border-radius: 5px; height: 111%; top: 0%; display: none;} /**/.content .five .left .left_pic .pic8 {width: 33%; height: 25%; transform: skew(-7deg, 20deg) rotate(-6deg); top: 120%; left: 60%;}.content .five .left .right_font {width: 33%; height: 100%; margin-left: 10%; opacity: 0;transition: All 2s ease-in-out;-webkit-transition: All 2s ease-in-out;-moz-transition: All 2s ease-in-out;-o-transition: All 2s ease-in-out;}.content .five .left .right_font p {font-size: 2vh; color: #444; font-family: Tahoma;}.content .five .left .right_font p:first-child {font-size: 3.5vh; color: #2db5ec; margin-bottom: 2%; margin-top: 90%;}/**************************************************************** 第五版end *//**************************************************************** 最后一版(iceCsy真是太好了) */.content .end {height: 100%; width: 100%; overflow: hidden;}.content .end div {height: 0%; width: 100%; position: absolute; background: #fff;}.content .end div .font {position: absolute; height: auto; text-align: center; opacity: 0;}.content .end .top {border-bottom: 2px solid #000; top: -2px;}.content .end .top .font {bottom: 0;}.content .end .top .font span:first-child {font-size: 3vh;}.content .end .top .font span:last-child {font-size: 4vh; color: #FE5442;}.content .end .bottom {border-top: 1.5px solid #000; bottom: -2px;}.content .end .bottom .font {top: 0; position: relative;}.content .end .bottom .font span {font-size: 2vh;}.content .end .bottom .font .s {font-size: 4vh; color: #c03734;}.content .end .bottom .end {height: 100%; text-align: center; font-size: 1.2vh; opacity: 0; font-family: 微软雅黑;}.content .end .bottom .end p {height: 10%;}.content .end .bottom .end p:first-child {margin-top: 12%;}/**************************************************************** 最后一版end */

五、🎁更多源码

1.如果我的博客对你有帮助请 “👍点赞” “✍️评论” “💙收藏”一键三连哦!

2.💗【👇🏻👇🏻👇🏻🉑关注我| 获取更多源码】带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、等!

📣以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。