宋白鸥M 发表于 2026-1-22 16:26:05

<!DOCTYPE html>

<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
      * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
      }
      body {
            padding: 20px;
            background: #fff;
            font-family: "宋体", sans-serif;
            position: relative;
            overflow-x: hidden;
      }

      /* 1. 桃花花瓣(柔和飘落) */
      .peach-blossom {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 2;
      }

      /* 2. 粉色画框(修改为居左) */
      .pink-frame {
            border: 12px solid #FFE4E9;
            border-radius: 18px;
            padding: 25px 15px;
            background: #fff;
            max-width: 550px;
            /* 去掉居中的 margin: 0 auto,改为左外边距控制间距 */
            margin-left: 20px;
            position: relative;
            z-index: 3;
            box-shadow: 0 2px 10px rgba(255, 180, 193, 0.15);
      }

      /* 3. 居中歌词 */
      .lyric {
            font-size: 16px;
            line-height: 2.4;
            color: #333;
            text-align: center;
            margin: 0;
      }

      /* 4. 隐藏播放器 */
      embed {
            display: none;
      }

      /* 5. 提示文字 */
      .tip {
            text-align: center;
            margin-top: 20px;
            color: #D87093;
            font-size: 14px;
      }

      /* 花瓣飘落动画(更柔和) */
      @keyframes blossomFall {
            0% {
                transform: translateY(-20px) rotate(0deg) scale(1);
                opacity: 1;
            }
            100% {
                transform: translateY(calc(100vh + 20px)) rotate(180deg) scale(0.8);
                opacity: 0;
            }
      }
    </style>
</head>
<body>
    <!-- 1. 花瓣容器 -->
    <div class="peach-blossom" id="peachBlossom"></div>

    <!-- 2. 画框+歌词 -->
    <div class="pink-frame">
      <div class="lyric">
揪耳朵呀揪耳朵……<br>
爽歪歪呀爽歪歪……
嘻嘻嘻~~太搞笑了吧!
      </div>

      <!-- 隐藏播放器(闭合标签) -->
      <embed
            src="https://www.lizhi.fm/616408/3190237287581010950?u=4928046"
            type="audio/mpeg"
            autoplay="true"
            muted="false"
            controller="false"
      >
    </div>

    <script>
      // 生成柔和花瓣
      function createPeachBlossom() {
            const container = document.getElementById('peachBlossom');
            const blossom = document.createElement('div');
            
            const size = Math.random() * 10 + 5;
            const color = `rgba(255, ${Math.floor(Math.random() * 70 + 170)}, ${Math.floor(Math.random() * 70 + 170)}, ${Math.random() * 0.4 + 0.5})`;
            const fallTime = Math.random() * 10 + 15;
            
            blossom.style.cssText = `
                position: absolute;
                width: ${size}px;
                height: ${size}px;
                background-color: ${color};
                border-radius: 50% 30%;
                top: -20px;
                left: ${Math.random() * 90 + 5}%;
                animation: blossomFall ${fallTime}s linear infinite;
            `;
            
            container.appendChild(blossom);
            setTimeout(() => blossom.remove(), fallTime * 1000);
      }

      setInterval(createPeachBlossom, 1200);
      for (let i = 0; i < 10; i++) createPeachBlossom();

      // 点击播放
      document.body.addEventListener('click', () => {
            const audio = document.querySelector('embed');
            audio && !audio.playing && audio.play();
      });
    </script>
</body>
</html>

白止G 发表于 2026-1-22 16:30:27

能这样的想像,一定是个快乐的人

玄女M 发表于 2026-1-22 16:49:21

欣赏好字唯美

叶青漪M 发表于 2026-1-22 17:36:56

崇安国君G 发表于 2026-1-22 14:56


牙齿一排排露,要的就是这个效果:P

叶青漪M 发表于 2026-1-22 17:37:25

成玉M 发表于 2026-1-22 14:58
这马蜂窝真好看,超级喜欢,赞赞赞。

搞笑的,放松一下

叶青漪M 发表于 2026-1-22 17:38:18

宋白鸥M 发表于 2026-1-22 16:26
* {
            margin: 0;
            padding: 0;


要不来一个揪耳朵,正好一起恶搞。:P

叶青漪M 发表于 2026-1-22 17:39:21

白止G 发表于 2026-1-22 16:30
能这样的想像,一定是个快乐的人

阴天的时候,弄个搞笑的,太阳就出来了:P

叶青漪M 发表于 2026-1-22 17:40:10

玄女M 发表于 2026-1-22 16:49
欣赏好字唯美

好玩吧!乐一乐,心情好:P

令羽G 发表于 2026-1-22 20:02:20

有趣,有才

叶青漪M 发表于 2026-1-22 20:05:24

令羽G 发表于 2026-1-22 20:02
有趣,有才

为了搞笑而写的,谢谢令公子:P
页: 1 2 [3] 4 5 6 7 8 9
查看完整版本: 来个搞笑的,都来乐一乐《马蜂窝》