这是程序员表白系列中的100款网站表白之一,旨在让任何人都能使用并创建自己的表白网站给心爱的人看。 此波共有100个表白网站,可以任意修改和使用,很多人会希望向心爱的男孩女孩告白,生性腼腆的人即使那个TA站在眼前都不敢向前表白。说不出口的话就用短视频告诉TA吧~制作一个表白网页告诉TA你的心意,演示如下。
文章目录
- 一、网页介绍
- 一、网页效果
- 二、代码展示
- 1.HTML代码
- 三、精彩专栏
一、网页介绍
1 网页简介:基于 HTML+CSS+JavaScript 制作七夕情人节表白网页、生日祝福、七夕告白、 求婚、浪漫爱情3D相册、炫酷代码
,快来制作一款高端的表白网页送(他/她)浪漫的告白,制作修改简单,可自行更换背景音乐,文字和图片即可使用
2.网页编辑:任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。
一、网页效果
二、代码展示
1.HTML代码
代码如下(示例):以下仅展示部分代码供参考~
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,user-scalable=no">
<!--嘿嘿,禁止缩放-->
<link rel="apple-touch-icon-precomposed" href="./jscss/1.png">
<meta name="format-detection" content="telephone=no">
<title>我喜欢你</title>
<style type="text/css">body {
text-align: center;
margin: 0px;
padding: 0px;
font-size: 25px;
color: #FFF;
font-family: "微软雅黑";
background: #f3961c;
}
div {
text-align: left;
}
.tittle {
width: 100%;
background: #f3961c;
top: 0px;
height: 100%;
z-index: 0;
position: absolute;
position: fixed !important;
display: none;
cursor: default;
}
.big {
font-family: "微软雅黑";
color: #FFF;
font-size: 35px;
}
.tishi {
position: absolute;
position: fixed !important;
z-index: 99;
bottom: 10px;
width: 100%;
text-align: center;
}
.tishiContent {
border: 1px solid #FFF;
font-size: 18px;
padding: 5px;
cursor: pointer;
border-radius: 5px;
}</style>
<script type="text/javascript" src="./jscss/jquery.min.js"></script>
<script>// if(localStorage["index"]=="1"){
// window.location="index2.html";
// }
$(document).ready(function(e) {
$(document).scrollTop(300); /*移动滚动条到最下方*/
timer=setInterval("$.change()",6000);
t=1;
$("#t-"+t).fadeIn();
$(document).click(
function(){
/*如果用户点击了,就取消自动播放*/
clearInterval(timer);
$.change();
}
);
/*切换*/
$.change=function(){
t++;
if(t<=$(".tittle").length){
$(".tittle").slideUp(1500).fadeOut();
$("#t-"+t).slideDown(1500).fadeIn();
}else{
localStorage["index"]="1";
window.location="index2.html";
}
}
});</script>
</head>
<body>
<center>
<div class="tittle" id="t-1" style="display: none;">
<table width="100%" border="0" height="100%">
<tbody><tr>
<td align="center"> <span class="big">表白系统</span>正在初始化</td>
</tr>
</tbody></table>
</div>
<div class="tittle" id="t-2" style="display: block;">
<table width="100%" border="0" height="100%">
<tbody><tr>
<td align="center"><span class="big">在这个特殊的</span>地方</td>
</tr>
</tbody></table>
</div>
<div class="tittle" id="t-3" style="">
<table width="100%" border="0" height="100%">
<tbody><tr>
<td align="center">我想对<span class="big">某人说</span></td>
</tr>
</tbody></table>
</div>
</center>
<div class="tittle" id="t-4" style="">
<table width="100%" border="0" height="100%">
<tbody><tr>
<td align="center"><br><span其实我 class="big">暗恋你很久了</span其实我></td>
</tr>
</tbody></table>
</div>
<div class="tittle" id="t-5" style="">
<table width="100%" border="0" height="100%">
<tbody><tr>
<td align="center"><br>下面是我对你的<span class="big">表白内容</span></td>
</tr>
</tbody></table>
</div>
<div align="center" class="tishi">
<span class="tishiContent">轻触屏幕继续</span>
</div>
</body></html>
三、精彩专栏
看到这里了就 【点赞,关注,收藏】 三连 支持下吧,你的支持是我创作的动力。