520表白神器

news2024/9/20 8:01:30

🍁博主简介
        🏅云计算领域优质创作者
        🏅2022年CSDN新星计划python赛道第一名

        🏅2022年CSDN原力计划优质作者
        🏅阿里云ACE认证高级工程师
        🏅阿里云开发者社区专家博主

💊交流社区:CSDN云计算交流社区欢迎您的加入!

一:项目展示

项目效果: 

二:使用方法

使用方法:下载代码包,自行替换文本和图片即可。 项目源码:
 

1. 主页 index.html 无需修改任何内容

2. 展示页 show.html 111行修改日期 135行修改表白者/被表白者姓名

3. 结果页 result.html

  • 替换内容:在编辑器中按ctrl+f全局搜索"{{替换",对内容进行替换

  • 替换图片:覆盖images目录下的文件(除baidu.png)

  • 替换音乐:覆盖bgMusic.mp3文件

三:代码展示

由于所有代码过长,文章字数限制导致无法全部粘贴,完整代码我已打包上传,可以自行下载。若无法下载在可以加我主页左下方的vx获取

index.html部分代码展示:

<!DOCTYPE html>
<!--STATUS OK-->
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="always" name="referrer">
    <meta name="theme-color" content="#2932e1">
    <link rel="shortcut icon" href="https://www.baidu.com/img/baidu_85beaf5496f291521eb75ba38eacbd87.svg" type="image/x-icon" />
    <title>百度一下,你就知道</title>
    <style index="newi" type="text/css">
    #form .bdsug {
        top: 39px
    }

    .bdsug {
        display: none;
        position: absolute;
        width: 535px;
        background: #fff;
        border: 1px solid #ccc !important;
        _overflow: hidden;
        box-shadow: 1px 1px 3px #ededed;
        -webkit-box-shadow: 1px 1px 3px #ededed;
        -moz-box-shadow: 1px 1px 3px #ededed;
        -o-box-shadow: 1px 1px 3px #ededed
    }

    .bdsug li {
        width: 519px;
        color: #000;
        font: 14px arial;
        line-height: 25px;
        padding: 0 8px;
        position: relative;
        cursor: default
    }

    .bdsug li.bdsug-s {
        background: #f0f0f0
    }

    .bdsug-store span,
    .bdsug-store b {
        color: #7A77C8
    }

    .bdsug-store-del {
        font-size: 12px;
        color: #666;
        text-decoration: underline;
        position: absolute;
        right: 8px;
        top: 0;
        cursor: pointer;
        display: none
    }

    .bdsug-s .bdsug-store-del {
        display: inline-block
    }

    .bdsug-ala {
        display: inline-block;
        border-bottom: 1px solid #e6e6e6
    }

    .bdsug-ala h3 {
        line-height: 14px;
        background: url(//www.baidu.com/img/sug_bd.png?v=09816787.png) no-repeat left center;
        margin: 6px 0 4px;
        font-size: 12px;
        font-weight: 400;
        color: #7B7B7B;
        padding-left: 20px
    }

    .bdsug-ala p {
        font-size: 14px;
        font-weight: 700;
        padding-left: 20px
    }

    #m .bdsug .bdsug-direct p {
        color: #00c;
        font-weight: 700;
        line-height: 34px;
        padding: 0 8px;
        margin-top: 0;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden
    }

    #m .bdsug .bdsug-direct p img {
        width: 16px;
        height: 16px;
        margin: 7px 6px 9px 0;
        vertical-align: middle
    }

    #m .bdsug .bdsug-direct p span {
        margin-left: 8px
    }

    #form .bdsug .bdsug-direct {
        width: auto;
        padding: 0;
        border-bottom: 1px solid #f1f1f1
    }

    #form .bdsug .bdsug-direct p i {
        font-size: 12px;
        line-height: 100%;
        font-style: normal;
        font-weight: 400;
        color: #fff;
        background-color: #2b99ff;
        display: inline;
        text-align: center;
        padding: 1px 5px;
        *padding: 2px 5px 0;
        margin-left: 8px;
        overflow: hidden
    }

    .bdsug .bdsug-pcDirect {
        color: #000;
        font-size: 14px;
        line-height: 30px;
        height: 30px;
        background-color: #f8f8f8
    }

    .bdsug .bdsug-pc-direct-tip {
        position: absolute;
        right: 15px;
        top: 8px;
        width: 55px;
        height: 15px;
        display: block;
        background: 

result.html完整代码:

<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <meta content="always" name="referrer">
    <meta name="theme-color" content="#2932e1">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link rel="icon" sizes="any" mask="" href="//www.baidu.com/img/baidu_85beaf5496f291521eb75ba38eacbd87.svg">
    <link rel="search" type="application/opensearchdescription+xml" href="/content-search.xml" title="百度搜索">
    <title>百度搜索</title>
    <style data-for="result" type="text/css" id="css_newi_result">
        body {
            color: #333;
            background: #fff;
            padding: 6px 0 0;
            margin: 0;
            position: relative;
            min-width: 900px
        }

        body,
        th,
        td,
        .p1,
        .p2 {
            font-family: arial
        }

        p,
        form,
        ol,
        ul,
        li,
        dl,
        dt,
        dd,
        h3 {
            margin: 0;
            padding: 0;
            list-style: none
        }

        input {
            padding-top: 0;
            padding-bottom: 0;
            -moz-box-sizing: border-box;
            -webkit-box-sizing: border-box;
            box-sizing: border-box
        }

        table,
        img {
            border: 0
        }

        td {
            font-size: 9pt;
            line-height: 18px
        }

        em {
            font-style: normal;
            color: #c00
        }

        a em {
            text-decoration: underline
        }

        cite {
            font-style: normal;
            color: pink
        }

        .m,
        a.m {
            color: #666
        }

        a.m:visited {
            color: #606
        }

        .g,
        a.g {
            color: pink
        }

        .c {
            color: #77c
        }

        .f14 {
            font-size: 14px
        }

        .f10 {
            font-size: 10.5pt
        }

        .f16 {
            font-size: 16px
        }

        .f13 {
            font-size: 13px
        }

        .bg {
            background-image: url(https://dss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/img/icons_441e82f.png);
            _background-image: 

show.html部分代码展示:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>I Love You ❤️</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <style>
        html {
            height: 100%;
        }

        body {
            font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
            background: #79a8ae;
            color: #CFEBE4;
            font-size: 18px;
            line-height: 2;
            letter-spacing: 1.2px;
            margin: 0;
        }

        a {
            color: #ebf7f4;
        }

        .body--ready {
            background: -webkit-linear-gradient(top, rgb(203, 235, 219) 0%, rgb(55, 148, 192) 120%);
            background: -moz-linear-gradient(top, rgb(203, 235, 219) 0%, rgb(55, 148, 192) 120%);
            background: -o-linear-gradient(top, rgb(203, 235, 219) 0%, rgb(55, 148, 192) 120%);
            background: -ms-linear-gradient(top, rgb(203, 235, 219) 0%, rgb(55, 148, 192) 120%);
            background: linear-gradient(top, rgb(203, 235, 219) 0%, rgb(55, 148, 192) 120%);
        }

        .text {
            position: fixed;
            bottom: 100px;
            text-align: center;
            width: 100%;
        }

        .canvas {
            margin: 0 auto;
            display: block;
        }

        img#logo {
            width: 128px;
            background-size: cover;
            border-radius: 200px;
            box-shadow: 0px 0px 40px rgba(63, 81, 181, 0.72);
            border: 3px solid #00a0ff;
            opacity: 1;
            margin: 0 auto;
            margin-top: 20px;
            margin-bottom: 20px;
            transition: all 1.0s;
        }

        #logo:hover {
            box-shadow: 0 0 10px #fff;
            -webkit-box-shadow: 0 0 19px #fff;
            transform: rotate(360deg);
            -ms-transform: rotate(360deg); /* IE 9 */
            -moz-transform: rotate(360deg); /* Firefox */
            -webkit-transform: rotate(360deg); /* Safari 和 Chrome */
            -o-transform: rotate(360deg); /* Opera */
            filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
        }

        .cs {
            width: 100%;
            height: 100%;
            margin: 0 auto;
            position: absolute;
            text-align: center;
        }

        .text {
            position: fixed;
            bottom: 80px;
            text-align: center;
            width: 100%;
            font-weight: bold;
        }

        .text-right {
            position: fixed;
            bottom: 50px;
            text-align: right;
            width: 100%;
            font-weight: bold;
        }
    </style>

四、代码运行

可以直接鼠标双击index.html 文件,然后可以自动在浏览器运行了。如果没有运行,那就是你的电脑没有识别.html后缀名,可以搜索一下如何让电脑文件的后缀名生效

不会编程的同学可以选中html代码文件,然后鼠标右击,选中打开方式,选择在记事本中编辑,修改代码中的汉字,即为自己想展示在页面上的内容

五:部署成项目

这是一个静态网站,可以在任何一个平台上部署,例如github,gitee,也可以部署到自己的服务器上。

例:在github上部署

  1. 新建一个仓库

  2. 把代码放到你的仓库中去

  3. 在仓库setting里面更改githubPages中的source为master branch 在这里插入图片描述 项目的主页默认是index.html,项目后面就不用加上文件名了 如果是别的名字,项目后面需要加上别的名字。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1794970.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Ripple:使用Wavelet Approximations来加速FHE的Programmable Bootstraps

1. 引言 University of Delaware和Nillion团队的 Charles Gouert、Mehmet Ugurbil、Dimitris Mouris、Miguel de Vega 和 Nektarios G. Tsoutsos&#xff0c;2024年论文《Ripple: Accelerating Programmable Bootstraps for FHE with Wavelet Approximations》&#xff0c;开源…

如何理解与学习数学分析——第二部分——数学分析中的基本概念——第9章——可积性

第2 部分&#xff1a;数学分析中的基本概念 (Concepts in Analysis) 9. 可积性(Integrability) 本章讨论了可积性(integrability)的概念(它不同于积分过程)。研究了反导数(antiderivative&#xff0c;或称原函数)和函数图像下面积之间的关系&#xff0c;然后通过对面积的近似…

使用Python绘制南丁格尔图(玫瑰图)

使用Python绘制南丁格尔图&#xff08;玫瑰图&#xff09; 南丁格尔图效果代码 南丁格尔图 南丁格尔图&#xff08;Nightingale Rose Chart&#xff09;&#xff0c;也被称为玫瑰图或极区图&#xff0c;是一种特殊的圆形统计图&#xff0c;用于显示多个类别的数据。它是由弗洛…

用蒙特卡罗积分法近似求解定积分的值及举例

一、背景知识 1、连续随机变量的概率密度函数 对于连续型随机变量的概率密度函数&#xff08;PDF&#xff09;&#xff0c;其在整个定义域上的积分必须等于1。这是概率密度函数的一个基本属性&#xff0c;它确保了随机变量取任何值的概率之和等于1&#xff0c;符合概率论的公…

Leetcode:电话号码的字母组合

题目链接&#xff1a;17. 电话号码的字母组合 - 力扣&#xff08;LeetCode&#xff09; 普通版本&#xff08;回溯&#xff09; class Solution { public:string tmp;//临时存放尾插内容vector<string> res;//将尾插好的字符串成组尾插给resvector<string> board{…

Apache POI(使用Java读写Excel表格数据)

1.Apache POI简介 Apache POI是一个开源的Java库&#xff0c;用于操作Microsoft Office格式的文件。它支持各种Office文档的读写功能&#xff0c;包括Word文档、Excel电子表格、PowerPoint演示文稿、Outlook电子邮件等。Apache POI提供了一组API&#xff0c;使得Java开发者能够…

服务器遭遇UDP攻击时的应对与解决方案

UDP攻击作为分布式拒绝服务(DDoS)攻击的一种常见形式&#xff0c;通过发送大量的UDP数据包淹没目标服务器&#xff0c;导致网络拥塞、服务中断。本文旨在提供一套实用的策略与技术手段&#xff0c;帮助您识别、缓解乃至防御UDP攻击&#xff0c;确保服务器稳定运行。我们将探讨监…

LCTF 2018 bestphp‘s revenge

考点:Soap原生类Session反序列化CRLF注入 <?php highlight_file(__FILE__); $b implode; call_user_func($_GET[f], $_POST); session_start(); if (isset($_GET[name])) { $_SESSION[name] $_GET[name]; } var_dump($_SESSION); $a array(reset($_…

推荐低成本低功耗的纯数字现场可重构IC

CPLD采用CMOS EPROM、EEPROM、快闪存储器和SRAM等编程技术&#xff0c;从而构成了高密度、高速度和低功耗的可编程逻辑器件。 RAMSUN提供的型号LS98003是通用可配置的数字逻辑芯片&#xff0c;有体积小、超低功耗和高可靠性等特点。客户可以根据自己的功能需求设计芯片&#x…

搜索与图论:八皇后问题

搜索与图论&#xff1a;八皇后问题 题目描述参考代码 题目描述 输入样例 4输出样例 .Q.. ...Q Q... ..Q...Q. Q... ...Q .Q..参考代码 #include <iostream>using namespace std;const int N 20;int n; char g[N][N]; bool col[N], dg[N], udg[N];void dfs(int u) {//…

这个世界,对于心态好的人,就是个大游乐场,越刺激越好玩。对于胆小鬼,那就是地狱,随时随地都会受伤

心态决定你的世界&#xff1a;游乐场还是地狱 在这个充满变数的世界里&#xff0c;我们的心态决定了我们看待世界的方式。对于心态积极的人来说&#xff0c;世界就像一个巨大的游乐场&#xff0c;每一个挑战都是一个新的游戏&#xff0c;每一个刺激都是乐趣的一部分。而对于那…

大模型产品层出不穷,如何慧眼识珠?

先预祝亲爱的读者们“端午安康“ 大模型百花齐放&#xff0c;选择难上加难 面对眼前层出不穷的大模型产品&#xff0c;许多人会不禁感到困惑&#xff1a;哪个才是真正适合自己的爆款大模型?在中国本土 alone&#xff0c;就有百来个大模型产品&#xff0c;简直是五花八门&…

Polar Web【简单】upload

Polar Web【简单】upload Contents Polar Web【简单】upload思路EXPPythonGo 运行&总结 思路 如题目所说&#xff0c;本题考查的是文件上传漏洞的渗透技巧。 打开环境&#xff0c;发现需要上传的是图片文件&#xff0c;故考虑使用截取数据包进行数据修改进行重放。在重发器…

【C++ | 析构函数】类的析构函数详解

&#x1f601;博客主页&#x1f601;&#xff1a;&#x1f680;https://blog.csdn.net/wkd_007&#x1f680; &#x1f911;博客内容&#x1f911;&#xff1a;&#x1f36d;嵌入式开发、Linux、C语言、C、数据结构、音视频&#x1f36d; ⏰发布时间⏰&#xff1a;2024-06-06 1…

2024 年适用于 Linux 的 5 个微软 Word 替代品

对于那些最近由于隐私问题或其他原因而转向 Linux 的用户来说&#xff0c;可能很难替换他们最喜欢的、不在 Linux 操作系统上运行的应用程序。 寻找流行程序的合适替代品可能会成为一项挑战&#xff0c;而且并不是每个人都准备好花费大量时间来尝试弄清楚什么可以与他们在 Win…

Leetcode:四数之和

题目链接&#xff1a;18. 四数之和 - 力扣&#xff08;LeetCode&#xff09; 普通版本&#xff08;排序 双指针&#xff09; 主旨&#xff1a;类似于三数之和的解法&#xff0c;但需要多加一些限制&#xff0c;同时为了防止多个数组元素的相加之和出现整型溢出问题还要将整型…

C++入门 ros服务通信

一、 开发环境 ubuntu20.04 ros版本noetic 参考视频 https://www.bilibili.com/video/BV1Ci4y1L7ZZ/?p52&spm_id_from333.1007.top_right_bar_window_history.content.click&vd_source4cd1b6f268e2a29a11bea5d2568836ee 二、 编写srv文件 在功能包下面创建srv文件夹…

数据结构(3)栈、队列、数组

1 栈 1.1 栈的定义 后进先出【LIFO】 1.2 基本操作 元素进栈出栈 只能在栈顶进行&#xff01;&#xff01;&#xff01; 经常考的题&#xff1a; 穿插的进行进栈和出栈 可能有多个选项 1.3 顺序栈 1.3.1 初始化 下标是从0开始的 1.3.2 进栈 更简单的写法&#xff1a; 1.3…

记录某书请求返回406及响应{“code“:-1,“success“:false}

今天测试某个平台的爬虫时使用requests post请求正常写了个测试脚本把各种参数带上出来以后出现了406情况&#xff0c;和网站数据是完全一样的 以为是 X-S、X-T参接不对&#xff0c;但在postman里测试又是可以的成功&#xff0c;以为是检验了参数顺序&#xff0c;测试发现也没…

【机器学习系列】“购物篮分析入门:使用Apyori库进行关联规则挖掘”

目录 一、关联分析介绍 关键概念&#xff1a; 1. 支持度&#xff08;Support&#xff09; 2. 置信度&#xff08;Confidence&#xff09; 3. 提升度&#xff08;Lift&#xff09; 4. 频繁项集 5. 关联规则 应用场景&#xff1a; 实现方法 二、导入数据集 额外介绍一…