js+css实时读取麦克风声音检测环境分贝声音检测仪代码

代码语言:html

所属分类:其他

代码描述:js+css实时读取麦克风声音检测环境分贝声音检测仪代码

代码标签: js css 麦克风 声音 检测 环境 分贝 检测仪 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>环境声音分贝检测</title>
  <style>
    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Microsoft YaHei", Arial, sans-serif;
      background: linear-gradient(135deg, #0f172a, #1e293b);
      color: #fff;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .card {
      width: 100%;
      max-width: 760px;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(14px);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    }

    h1 {
      margin: 0 0 10px;
      font-size: 28px;
      text-align: center;
    }

    .desc {
      text-align: center;
      color: #cbd5e1;
      font-size: 14px;
      margin-bottom: 24px;
      line-height: 1.6;
    }

    .panel {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-bottom: 20px;
    }

    .item {
      background: rgba(255,255,255,0.08);
      border-radius: 16px;
      padding: 18px;
      text-align: center;
      border: 1px sol.........完整代码请登录后点击上方下载按钮下载查看

网友评论0