磨玻璃半透明磨砂模糊效果 (web前端)

直接上才艺

<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <title>磨砂效果测试</title>
  <style>
    body {
      margin: 0;
      padding: 0;
      background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e') no-repeat center center fixed;
      background-size: cover;
      font-family: sans-serif;
    }

    .coursebox {
      width: 600px;
      margin: 50px auto;
      padding: 20px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
      color: #fff;
    }
  </style>
</head>
<body>

  <div class="coursebox">
    <h2>TCP 复位攻击实验</h2>
    <p>这是一段课程内容,它应该显示在磨砂半透明背景容器中。</p>
  </div>

</body>
</html>

posted @ 2025-06-04 15:26  学不会xuebuhui  阅读(35)  评论(0)    收藏  举报
Language: javascript //图片预览