惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
T
The Blog of Author Tim Ferriss
量子位
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
小众软件
小众软件
Recent Announcements
Recent Announcements
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
I
InfoQ
美团技术团队
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
Last Week in AI
Last Week in AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
H
Help Net Security

小世界博客

不是这哥们想干啥啊 - 小世界博客 AI助手的未来发展 - 小世界博客 OpenClaw 安装教程:从零开始搭建你的 AI 助手 - 小世界博客 一个网页底部装饰代码 - 小世界博客 维护通知页面 - 小世界博客 网站左下角 小蛇 - 小世界博客 CF怀旧模式 - 小世界博客 又是心情愉悦的一天呐 - 小世界博客 我咋就这么倒霉 - 小世界博客 分享一个赞助源码 - 小世界博客
给你的博客加个春节倒计时 - 小世界博客
admin · 2024-10-17 · via 小世界博客

共计 783 个字符,预计需要花费 2 分钟才能阅读完成。

给你的博客加个春节倒计时

<div style="background:#fff;padding:0 0.5rem">
<div style="background: url('https://s21.ax1x.com/2024/10/17/pAUSUN4.png') no-repeat center/100%;
height: 8rem;
padding: 2.3rem 0;
color: #fcf8b1;
text-shadow: 2px 2px 10px #b2b2b2;
border-radius: 10px;">
<h1><center>2025年春节倒计时</center></h1>
<center>
<div id="setTimeWork"></div>
</center>
<script type="text/javascript">
function getRTime() {
var d, h, m, s, t;
var EndTime = new Date('2025/01/29 00:00:00');
var NowTime = new Date();
var timer;
t = EndTime.getTime() - NowTime.getTime();
d = Math.floor(t / (1000 * 60 * 60 * 24));
h = Math.floor(t % (1000 * 60 * 60 * 24) / (1000 * 60 * 60));
m = Math.floor(t % (1000 * 60 * 60) / (1000 * 60));
s = Math.floor(t % (1000 * 60) / 1000);
document.getElementById("setTimeWork").innerHTML = d + ' 天 ' + h + ' 时 ' + m + ' 分 ' + s + ' 秒 ';
timer = setTimeout(getRTime, 1000);
}
getRTime();
</script>
</div>
</div>

直接添加到需要的位置即可 自己调整吧