php表白页面,2020情人节表白页面(代码分享)
趁此单身汪伤心之日,作为一名前端程序猿的我也按捺不住了,撸个表白页面送给广大想表白的人儿。
话不多说,先看效果(网页地址):
功能
一个网页输入名称,生成带参数的网址。
浏览器输入该网址,即可打开带有该名字的网页,图片轮播,还带有音乐哟
(简单实现,本文不是技术软文,而是小工具推荐啊啊哈哈)
(ps: 已经做了移动端适配,手机打开效果更加哦)
代码// name.html
输入名字
body {
min-height: 100vh;
background: linear-gradient(#1d2b64, #f8cdda);
color: #fff;
font-family: PingFangSC-Regular;
padding: 0;
margin: 0;
}
input {
display: inline-block;
width: 80%;
height: 32px;
line-height: 1.5;
padding: 4px 7px;
margin: 20px auto 0 auto;
font-size: 16px;
border: 1px solid #dcdee2;
border-radius: 4px;
color: #515a6e;
background-color: #fff;
background-image: none;
position: relative;
cursor: text;
-webkit-transition: border 0.2s ease-in-out, background 0.2s ease-in-out,
-webkit-box-shadow 0.2s ease-in-out;
transition: border 0.2s ease-in-out, background 0.2s ease-in-out,
-webkit-box-shadow 0.2s ease-in-out;
transition: border 0.2s ease-in-out, background 0.2s ease-in-out,
box-shadow 0.2s ease-in-out;
transition: border 0.2s ease-in-out, background 0.2s ease-in-out,
box-shadow 0.2s ease-in-out, -webkit-box-shadow 0.2s ease-in-out;
}
.button {
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 10;
width: 80%;
height: 40px;
background: rgba(89, 126, 247, 1);
border-radius: 44px;
font-size: 14px;
font-weight: 500;
color: rgba(255, 255, 255, 1);
line-height: 20px;
cursor: pointer;
}
.button-shadow {
width: 80%;
height: 40px;
background: rgba(106, 140, 253, 1);
border-radius: 44px;
opacity: 0.3081;
-webkit-filter: blur(4px);
filter: blur(4px);
margin-top: -36px;
}
#card {
width: 80%;
box-sizing: border-box;
padding: 20px 12px;
word-wrap: break-word;
}
@media screen and (min-width: 800px) {
.container {
width: 350px;
margin: 0 auto;
}
}
Happy Valentine's Day
window.onload = function() {
document.getElementById("btn").addEventListener("click", function() {
let name = document.getElementById("name").value;
if (name === "") {
alert("请输入姓名");
return;
}
let url =
"https://zxpsuper.github.io/Demo/valentine_day/index.html?name=" +
encodeURIComponent(encodeURIComponent(name));
document.getElementById("card").innerHTML = url;
});
};
style="display: flex;margin-top: 40px; flex-direction:column;align-items: center "
>
复制以上网址发给他人吧
------------
//index.html
情人节快乐
img {
width: 100%;
}
body {
min-height: 100vh;
background: linear-gradient(#1d2b64, #f8cdda);
color: #fff;
font-family: PingFangSC-Regular;
padding: 0;
margin: 0;
}
.avatar {
width: 44px;
height: 44px;
border-radius: 50%;
border: 2px solid #fff;
}
.shadow {
position: absolute;
left: 0;
z-index: -1;
filter: blur(50px);
}
.btn-group {
display: flex;
margin-top: 40px;
justify-content: space-between;
align-items: center;
}
.btn-group div {
flex: 1;
text-align: center;
}
.sure {
padding: 14px 0;
background: linear-gradient(
180deg,
rgba(255, 127, 87, 1) 0%,
rgba(221, 40, 39, 1) 100%
);
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
}
.cancel {
padding: 14px 0;
background: #eee;
color: #333;
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
}
marquee {
background: none;
}
@media screen and (min-width: 800px) {
.container {
width: 350px;
margin: 0 auto;
}
}
style="position: relative; display: flex; align-items: center; margin-bottom: 10px"
>
小皮咖
src="http://att.chinauui.com/day_181211/20181211_8480d0323003455bd6de8CcQ3Eq28Mm9.mp3"
autoplay
loop
>
您的浏览器不支持 audio 标签。
确定
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) {
return r[2];
}
return null;
}
window.onload = function() {
let name = getQueryString("name");
document.getElementById("name").innerHTML = decodeURIComponent(
decodeURIComponent(name)
);
};
最后祝大家情人节快乐!!
相关标签:情人节
本文转载于:segmentfault,如有侵犯,请联系a@php.cn删除
php表白页面,2020情人节表白页面(代码分享)相关推荐
- python表白玫瑰花绘制——情人节表白(亲测)
python表白玫瑰花绘制--情人节表白 搬运不易,路过的各位大佬请点个赞 python表白玫瑰花绘制--情人节表白 python表白玫瑰花绘制--情人节表白 一.玫瑰花绘制-深红色 二.玫瑰花绘制- ...
- python表白玫瑰花绘制——情人节表白
python表白玫瑰花绘制--情人节表白 搬运不易,路过的各位大佬请点个赞 python表白玫瑰花绘制--情人节表白 python表白玫瑰花绘制--情人节表白 一.玫瑰花绘制-深红色 二.玫瑰花绘制- ...
- matlab有趣表白程序_matlab情人节表白代码
[实例简介]情人节表白 [实例截图] [核心代码] %构造体积方程和坐标轴,画出图形; [X,Y,Z] = meshgrid(linspace(-3,3,101)); %3D心型图方程如下; F = ...
- 情人节程序员用HTML网页表白 html七夕情人节表白示爱网站源码制作
❤ 精彩专栏推荐
- 【情人节表白神器:送她一个HTML动态表白网站 带源码】
ChatGPT 介绍 ChatGPT 是由 OpenAI 开发的高级语言模型.它是一种基于变换器的神经网络,已经在互联网上的大量文本数据上进行了训练.这使得 ChatGPT 具有很强的语言理解能力,能 ...
- python一箭穿心图——情人节表白
python一箭穿心绘制--情人节表白 原创不易,路过的各位大佬请点个赞 python表白一箭穿心绘制--情人节表白 python一箭穿心绘制--情人节表白 1.一箭穿心含义 2.'一箭穿心' 动图形 ...
- HTML5七夕情人节表白网页_飘落蒲公英动画超酷炫的HTML5页面_ HTML+CSS+JS 求婚 html生日快乐祝福代码网页 520情人节告白代码 程序员表白源码 抖音3D旋转相册
HTML5七夕情人节表白网页❤飘落蒲公英动画超酷炫的HTML5页面❤ HTML+CSS+JS 求婚 html生日快乐祝福代码网页 520情人节告白代码 程序员表白源码 抖音3D旋转相册 js烟花代码 ...
- 利用html5页面表白,利用HTML5实现七夕情人节表白代码
特效描述:利用HTML5实现七夕情人节表白代码.利用HTML5实现七夕情人节表白代码 代码结构 1. 引入CSS 2. 引入JS 3. HTML代码 Th an ks for w atch ing! ...
- HTML生日快乐代码 HTML5七夕情人节表白【粉色烂漫的七夕情人节专题页面】 HTML5七夕情人节表白网页源码 html css javascript
这是程序员表白系列中的100款网站表白之一,旨在让任何人都能使用并创建自己的表白网站给心爱的人看. 此波共有100个表白网站,可以任意修改和使用,很多人会希望向心爱的男孩女孩告白,生性腼腆的人即使那个 ...
最新文章
- CVPR 2020:华为GhostNet,超越谷歌MobileNet,已开源
- 微信小游戏视频激励广告onClose接口叠加回调的问题解决方法
- Azure School与开源
- 【美文保存】nosql数据库对比以及如何巧妙利用redis来提高效率?
- java输入一串字符串反转_反转Java中的字符串
- BAT中取得一个命令的执行结果
- 期末考试查分,基于青果高校教务系统的一个自动python脚本代码。
- 【hdu】6441 Find Integer - 费马大定理
- 关于图像融合 视频融合
- 怎样来实现数据接口的加密?
- 为iPhone日历添加天气和农历
- Python与c语言的区别与联系
- java 响铃_怎么样编写一个java响铃程序?
- 记录女士出差一周必备物品清单用哪个便签比较好
- 小白自学C语言的准备方向(推荐)
- 销售技巧之绕过前台的31法
- 利用python进行股票技术分析--以茅台为例
- 猿创征文|一文带你了解国产TiDB数据库
- 云服务器怎么做raid,深入剖析—服务器应该做RAID几?
- 微信小程序与公众号卡券/会员打通