发布时间:2026/9/5 3:15:02
喜迎中秋+国庆10天假期——表达我的开心—html表达 举国欢庆的国庆如约而至作为大学生暂别书桌伏案的日常。抛开学习的琐碎带着满心欢喜感受金秋与节日碰撞出来的无限欢愉。通过豆包创建的完成方法步骤1.提示词喜迎中秋 国庆共 10 天假期 —— 表达我的开心 - html 表达 返回代码需要显示倒计时增强互动点击的时候页要有特效返回代码!DOCTYPE html html langzh-CN head meta charsetUTF-8 meta nameviewport contentwidthdevice-width, initial-scale1.0 title喜迎中秋·国庆十天长假/title style * { margin: 0; padding: 0; box-sizing: border-box; } body { min-height: 100vh; background: radial-gradient(circle at 20% 10%, #ffd6e2 0%, #ffb8cc 40%, #ffa8bf 100%); font-family: Microsoft Yahei, system-ui; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #992b55; } /* 背景光晕呼吸 */ body::before{ content:; position:fixed; top:0;left:0; width:100%;height:100%; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.3), transparent 55%); animation: bgBreath 7s ease-in-out infinite alternate; z-index:-1; } keyframes bgBreath { from{opacity:0.6;} to{opacity:1;} } .wrap{ text-align:center; z-index:2; padding:20px; max-width:700px; } h1{ font-size: clamp(2rem,5vw,3.2rem); background: linear-gradient(90deg,#d13b6f,#ff6b9b); -webkit-background-clip:text; color:transparent; margin-bottom:16px; animation: floatUp 2.2s ease infinite alternate; } .desc{ font-size: clamp(1rem,2vw,1.4rem); margin-bottom:32px; opacity:0.85; } /* 玻璃倒计时卡片 修复渲染问题 */ .count-card{ backdrop-filter: blur(14px); background:rgba(255,255,255,0.42); border:1px solid rgba(255,255,255,0.7); box-shadow: 0 8px 32px rgba(200,40,90,0.18); border-radius:24px; padding:28px 36px; display:inline-block; } .count-title{ font-size:1.2rem; margin-bottom:14px; } #countBox{ font-size: clamp(1.6rem,4vw,2.4rem); font-weight:bold; letter-spacing:2px; color:#c42e63; min-height:44px; } .happy-slogan{ margin-top:30px; font-size: clamp(1.4rem,3vw,2rem); font-weight:bold; animation: pulse 1.6s infinite; } .emoji-group{ font-size:3.2rem; margin:24px 0; } keyframes floatUp{ 0%{transform: translateY(0);} 100%{transform: translateY(-10px);} } keyframes pulse{ 0%{transform:scale(1);opacity:0.85;} 50%{transform:scale(1.04);opacity:1;} 100%{transform:scale(1);opacity:0.85;} } /* 飘落元素 */ .fall-item{ position:absolute; font-size:26px; pointer-events:none; animation: fallAnim 9s linear infinite; } keyframes fallAnim{ 0%{transform: translateY(-40px) rotate(0deg);opacity:1;} 100%{transform: translateY(105vh) rotate(360deg);opacity:0;} } canvas{ position:fixed; top:0;left:0; width:100%;height:100%; pointer-events:none; z-index:1; } /style /head body canvas idfirework/canvas div classwrap h1喜迎中秋 国庆10天假期/h1 div classdesc期待已久的超长假日即将到来/div div classcount-card div classcount-title距离假期开启/div div idcountBox加载中.../div /div div classhappy-slogan开心值直接拉满 ✨/div div classemoji-group/div div classdesc好好放松快乐过节双倍欢喜/div /div script // 倒计时【修复版】目标2026‑10‑01 0点 const targetTimestamp new Date(2026-10-01 00:00:00).getTime(); const countDom document.getElementById(countBox); function renderCountdown(){ const now Date.now(); const diff targetTimestamp - now; if(diff 0){ countDom.innerText 假期已正式开启; return; } const days Math.floor(diff / (1000 * 60 * 60 * 24)); const hours Math.floor((diff % (1000*60*60*24)) / (1000*60*60)); const mins Math.floor((diff % (1000*60*60)) / (1000*60)); const secs Math.floor((diff % (1000*60)) / 1000); countDom.innerText ${days}天 ${hours}时 ${mins}分 ${secs}秒; } renderCountdown(); setInterval(renderCountdown, 1000); // 飘落emoji const emojiList [,,,,,,]; setInterval((){ const el document.createElement(div); el.className fall-item; el.textContent emojiList[Math.floor(Math.random()*emojiList.length)]; el.style.left Math.random()*100 %; el.style.animationDuration (5 Math.random()*6)s; document.body.appendChild(el); setTimeout(() el.remove(), 11000); },450); // 烟花画布 const canvas document.getElementById(firework); const ctx canvas.getContext(2d); function resizeCanvas(){ canvas.width window.innerWidth; canvas.height window.innerHeight; } resizeCanvas(); window.addEventListener(resize, resizeCanvas); class Particle{ constructor(x,y,color){ this.x x; this.y y; this.sx (Math.random()-0.5)*6; this.sy (Math.random()-0.5)*6; this.alpha 1; this.color color; this.size Math.random()*31; } update(){ this.x this.sx; this.y this.sy; this.sy 0.04; this.alpha -0.018; } draw(){ ctx.save(); ctx.globalAlpha this.alpha; ctx.fillStyle this.color; ctx.beginPath(); ctx.arc(this.x,this.y,this.size,0,Math.PI*2); ctx.fill(); ctx.restore(); } } let particles []; function boom(x,y){ const colors [#ff87ad,#ffb6c1,#ff5e8e,#fff]; for(let i0;i70;i){ particles.push(new Particle(x,y,colors[Math.floor(Math.random()*colors.length)])); } } setInterval((){ boom(Math.random()*canvas.width, Math.random()*canvas.height*0.5); },2200); function loop(){ ctx.fillStyle rgba(255,180,200,0.07); ctx.fillRect(0,0,canvas.width,canvas.height); for(let iparticles.length-1;i0;i--){ particles[i].update(); particles[i].draw(); if(particles[i].alpha 0) particles.splice(i,1); } requestAnimationFrame(loop); } loop(); /script /body /html2. 展示代码效果创建文本文档展示文件拓展名修改文件名添加代码内容——通过记事本打开注一定要保存代码CtrlS访问效果

相关新闻

2026/9/5 3:10:02

大模型重复输入测试:从机制原理到工程实践指南

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/5 3:10:02

Docker容器化与CI/CD实战:海外DevOps软件搬家项目指南

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/5 4:20:05

华凌KFR-72LW 3匹柜机值不值?先搞懂参数、安装与验收再下单

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/5 4:20:05

STM32+VSCode+CubeIDE+OpenOCD+ST-Link环境搭建

用过一套很顺手的组合,想把完整的搭建过程和踩过的坑记录下来,给准备从IDE全家桶转向更自由工作流的开发者一点参考。这个组合针对的是STM32开发中最刚需的四个环节:用CubeIDE和CubeMX做底层初始化和代码生成,用VSCode做日常编辑和…

2026/9/5 4:20:05

基于Flask与YOLO的RTSP视频流实时目标检测系统构建指南

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/5 4:20:05

VSCode+OpenOCD+ST-Link 构建高效STM32调试环境

1. 为什么我放弃了 CubeIDE 自带调试,转向 VSCode OpenOCD做嵌入式开发这些年,我大部分时间都泡在 STM32 的世界里。早期用 Keil,后来切到 STM32CubeIDE,说实话 CubeIDE 集成的调试功能已经够用,但有几个点一直让我不…

2026/9/5 2:46:54

vSound小提琴数字处理器实操指南:从接线到演出的完整配置

电小提琴或者原声小提琴插电演出,第一个绕不开的坎就是声音难听。原声琴的共鸣和空气感一旦进了拾音器,出来的往往是一坨干瘪、发尖、带着奇怪塑料味的信号。我当初第一次把琴接上乐队调音台,直接被主唱吐槽"你这声音像在锯钢丝"。…

2026/9/5 2:46:52

传感器接口IC如何攻克生物化学传感的微弱信号难题?

1. 从电极到比特流:为什么生物化学传感必须依赖专用接口IC 做生物化学传感的人都有过类似的经历:明明传感器本身性能很好,信号输出却一塌糊涂——噪声大、漂移明显、重复性差,怎么调都达不到预期。很多时候问题并不在传感器&#…

2026/9/5 2:44:34

STM32F411CEU6多通道ADC采集:扫描模式+DMA实现详解

1. 多通道 ADC 的用武之地把“Multichannel ADC”和“STM32F411CEU6”这两个关键字放在一起,其实就是嵌入式开发里最常遇到的一类需求:用一块不算贵的 MCU,同时采集多路模拟信号。STM32F411CEU6 是 48 引脚的 Cortex-M4F 主控,主频…

2026/9/5 0:04:47

流式背压机制:避免前端渲染卡死与内存暴涨的滑动窗口限流

流式背压机制:避免前端渲染卡死与内存暴涨的滑动窗口限流在大模型流式输出(Streaming)与智能体实时推流的架构中,生产环境中经常出现一种“上下游生产消费速率严重失衡”的极端情况: 生产端极速产出:大模型…

2026/9/5 2:45:13

USB Type-C PCB布局分区设计:电源、高速信号与PD协议全攻略

做硬件这行,Type-C接口算是典型的“看着简单,做起来全坑”的东西。光引脚就24个,高低速信号、电源、控制线全部塞在一个小小的连接器里,如果PCB布局不做规划,打样回来基本就是“插上没反应”、“高速掉线”、“静电一打…

2026/9/5 2:30:42

系统编程学习原型如何补齐稳定性边界

系统编程学习原型如何补齐稳定性边界预算有限时&#xff0c;我先优化明显多余的复制&#xff0c;而不是猜测性地换容器。用借用传递只读数据通常就能减少分配&#xff1a; fn parse(line: &str) -> Result<Item, Error> { /* ... */ }用基准确认热点确实在分配&am…

2026/9/5 2:46:50

雨花区哪家财务公司代理记账比较好?

在雨花区&#xff0c;企业处理财税事务常常面临诸多挑战&#xff0c;选择一家靠谱的财务公司至关重要。湖南巨勤财务管理咨询有限公司就是本地正规实体财税服务机构&#xff0c;深耕本地工商财税行业多年&#xff0c;熟悉当地工商局、税务局最新政策与申报流程。主营公司注册、…