• 七夕节快到了,程序员独有的表白网页神器了解一下(HTML+CSS+JS)


    ❤ 精彩专栏推荐👇🏻👇🏻👇🏻
    💂 作者主页: 【进入主页—🚀获取更多源码】
    🎓 web前端期末大作业: 【📚HTML5网页期末作业 (1000套) 】
    🧡 程序员有趣的告白方式:【💌HTML七夕情人节表白网页制作 (125套) 】
    七夕来袭!是时候展现专属于程序员的浪漫了!你打算怎么给心爱的人表达爱意?鲜花礼物?代码表白?还是创意DIY?或者…无论那种形式,快来秀我们一脸吧!



    二、📚网站介绍

    📒网站文件方面: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.视频演示

    71-表白对话2

    🧩 2.图片演示

    在这里插入图片描述


    四、💒 网站代码

    🧱HTML结构代码

    
    doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>LOVEtitle>
    <link href="style/main.css" rel="stylesheet" >
    head>
    <style>
    	
    style>
    <body>
    	<div class="box" align="center">
    		<p>我观察你很久了p>
    		<h1>小姐姐做我对象好不好?h1>
    		<img src="images/1.jpg">
    		<div class="bottom">
    			<div class="left" id="hao">div>
    			<div class="right" id="buhao">不好div>
    		div>
    	div>
    body>
    	<script type="text/javascript" src="js/zaiyiqi.js">script>
    html>
    
    
    
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29

    🏠CSS样式代码

    @charset "utf-8";
    /* CSS Document */
    
    
    
    /*电脑版本*/
    @media screen and (min-width:501px){
    .box{
    		width: 600px;
    		background-image: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
    		border-radius: 10px;
    		margin: 0 auto;
    		color: aliceblue;
    		 margin: auto;
        	position: absolute;
        	top: 0;
        	left: 0;
       	 	right: 0;
        	bottom: 0;
    	}
    	.box img{
    		width: 200px;
    		height: 200px;
    		border-radius: 5px;
    	}
    	.box p{
    		padding-top: 30px;
    		font-weight: bold;
    	}
    	.bottom{
    		margin-top:30px;
    		width: 99%;
    		height: 80px;
    	
    	}
    	.left{
    		display: inline-block;
    		width: 150px;
    		height: 40px;
    		background-color: #5cb85c;
    		border-color: #4cae4c;
    		margin-right: 100px;
    		border-radius: 5px;
    		line-height: 40px;
    		font-size: 18px;
    		font-weight: bold;
    		cursor: pointer;
    	}
    	.left:hover{
    		background-color:#328732;
    		
    	}
    		.right{
    		cursor: pointer;
    		display: inline-block;
    		width: 150px;
    		height: 40px;
    		background-color: #c9302c;
    		border-color: #ac2925;
    		border-radius: 5px;
    		line-height: 40px;
    		font-size: 16px;
    		
    	}
    	.right:hover{
    		border-color:#B11C18;
    	}
    }
    /*手机端*/
    @media screen and (max-width:500px){
    	.box{
    		width: 100%;
    		background-image: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
    	
    		margin: 0 auto;
    		color: aliceblue;
    		 margin: auto;
        	position: absolute;
        	top: 0;
        	left: 0;
       	 	right: 0;
        	bottom: 0;
    	}
    		.box img{
    		width:150px;
    		height: 150px;
    		border-radius: 5px;
    	}
    	.box p{
    		padding-top: 30px;
    		font-weight: bold;
    	}
    	.bottom{
    		margin-top:3%;
    		width: 99%;
    		height: 80px;
    	
    	
    	}
    	.left{
    		display: inline-block;
    		width: 40%;
    		height: 40px;
    		background-color: #5cb85c;
    		border-color: #4cae4c;
    		margin-right: 10%;
    		border-radius: 5px;
    		line-height: 40px;
    		font-size: 18px;
    		font-weight: bold;
    		cursor: pointer;
    	}
    	.left:hover{
    		background-color:#328732;
    		
    	}
    		.right{
    		cursor: pointer;
    		display: inline-block;
    		width: 40%;
    		height: 40px;
    		background-color: #c9302c;
    		border-color: #ac2925;
    		border-radius: 5px;
    		line-height: 40px;
    		font-size: 16px;
    		
    	}
    	.right:hover{
    		border-color:#B11C18;
    	}
    
    
    	
    
    }
    
    
    
    
    
    
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143

    五、🎁更多源码

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

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

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

  • 相关阅读:
    [附源码]计算机毕业设计springboot汽车租赁管理系统
    【CCF】Z字形扫描
    SOLIDWORKS 2024新功能之Visualize篇
    PHP8的类与对象的基本操作之类的实例化-PHP8知识详解
    真实的产品开发中,后端的设计规约可以写哪些
    基于Matlab求解高教社杯全国大学生数学建模竞赛(CUMCM2004A题)-奥运会临时超市网点设计(附上源码+数据)
    Redis客户端和服务端如何通信?
    【Swift 60秒】16 - Enumerations
    RPA是什么意思?RPA机器人很厉害吗?
    webpack不同环境下使用CSS分离插件mini-css-extract-plugin
  • 原文地址:https://blog.csdn.net/qq_38517811/article/details/127130884