0
点赞
收藏
分享

微信扫一扫

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


📂文章目录

  • ​​二、📚网站介绍​​
  • ​​三、🔗网站效果​​
  • ​​▶️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.视频演示

71-表白对话2

🧩 2.图片演示

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

四、💒 网站代码

🧱HTML结构代码

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>LOVE</title>
<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>

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

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


举报

相关推荐

0 条评论