css实现自适应音乐考试题目列表代码

代码语言:html

所属分类:响应式

代码描述:css实现自适应音乐考试题目列表代码

代码标签: 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>Crescendo </title>
    
    <!-- Google Fonts for professional typography -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">

    <style>
        /* --- CSS Variables for Theming --- */
        :root {
            --bg-main: #f8f9fc;
            --bg-panel: #ffffff;
            --color-primary: #1d3557; /* Midnight Blue */
            --color-accent: #0077b6; /* Sky Blue Accent */
            --color-accent-light: #e6f2f9;
            --text-heading: #1d3557;
            --text-body: #495057;
            --text-muted: #868e96;
            --border-color: #dee2e6;
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 12px rgba(29, 53, 87, 0.08);
            --shadow-lg: 0 10px 30px rgba(29, 53, 87, 0.1);
            --radius-md: 12px;
            --radius-lg: 16px;
            --transition-speed: 0.3s;
        }

        /* --- Global Reset & Base --- */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', 'Noto Sans SC', sans-serif;
            background-color: var(--bg-main);
            color: var(--text-body);
            font-size: 16px;
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* --- Main Layout --- */
        .app-container {
            display: flex;
            height: 100vh;
        }

        .sidebar {
            width: 260px;
            background-color: var(--bg-panel);
            border-right: 1px solid var(--border-color);
            padding: 1.5rem 1rem;
            flex-shrink: 0;
            transition: transform var(--transition-speed) ease;
            z-index: 1000;
        }

        .main-wrapper {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .top-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: var(--bg-panel);
            padding: 0 2rem;
            height: 70px;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
        }

        .main-content {
            flex-grow: 1;
            padding: 2.5rem;
            overflow-y: auto;
        }
        
        /* --- Sidebar & Navigation ---.........完整代码请登录后点击上方下载按钮下载查看

网友评论0