如何制作一个简单的学习教务系统?

代码

html 复制代码
<!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 type="text/css">
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft Yahei", sans-serif;
        }

        /* 顶部蓝色标题栏 */
        .header-top {
            background: linear-gradient(to right, #003377, #004099);
            color: white;
            padding: 15px 50px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .logo {
            display: flex;
            align-items: center;
        }
        .logo img {
            width: 60px;
            height: 60px;
            margin-right: 15px;
        }
        .title h1 {
            font-size: 22px;
            font-weight: 600;
        }
        .title p {
            font-size: 12px;
            opacity: 0.9;
        }
        .search-box {
            display: flex;
            align-items: center;
        }
        .search-box input {
            height: 32px;
            padding: 0 10px;
            border: none;
            border-radius: 4px 0 0 4px;
            outline: none;
        }
        .search-box button {
            height: 32px;
            width: 40px;
            background: #0066cc;
            color: white;
            border: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
        }

        /* 导航栏 */
        .nav {
            background: #003377;
            display: flex;
            padding: 0 50px;
        }
        .nav a {
            color: white;
            text-decoration: none;
            padding: 14px 30px;
            display: block;
            font-size: 15px;
            transition: background 0.3s;
        }
        .nav a:hover {
            background: #004099;
        }

        /* 轮播图 */
        .banner {
            width: 100%;
            height: 400px;
            display: flex;
            overflow: hidden;
        }
        .banner .left {
            width: 40%;
            background: #f5f5f5;
        }
        .banner .left img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .banner .right {
            width: 60%;
            background: #d62828;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 28px;
            text-align: center;
            padding: 0 50px;
            position: relative;
        }
        .banner .dots {
            position: absolute;
            bottom: 20px;
            display: flex;
            gap: 10px;
        }
        .banner .dots span {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            cursor: pointer;
        }

        /* 内容区 */
        .content {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
            display: flex;
            gap: 40px;
        }
        .section {
            flex: 1;
        }
        .section h2 {
            font-size: 18px;
            color: #003377;
            border-bottom: 2px solid #003377;
            padding-bottom: 8px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .section h2 a {
            color: #666;
            font-size: 14px;
            text-decoration: none;
            font-weight: normal;
        }
        .news-list {
            list-style: none;
        }
        .news-list li {
            padding: 8px 0;
            border-bottom: 1px dotted #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .news-list li a {
            color: #333;
            text-decoration: none;
            font-size: 14px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .news-list li a:hover {
            color: #0066cc;
        }
        .news-list li span {
            font-size: 12px;
            color: #999;
        }

        /* ===== 黑色页脚样式 ===== */
        .footer {
            background-color: #222;
            color: #ccc;
            padding: 30px 50px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-top: 50px;
        }
        .footer-left {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .footer-logo {
            width: 80px;
            height: 80px;
            margin-bottom: 10px;
        }
        .footer-title {
            font-size: 20px;
            color: #fff;
            font-weight: 600;
            margin-bottom: 5px;
        }
        .footer-subtitle {
            font-size: 12px;
            margin-bottom: 20px;
        }
        .footer-icons {
            display: flex;
            gap: 25px;
        }
        .footer-icons a {
            color: #ccc;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
        }
        .footer-icons i {
            font-size: 20px;
            margin-bottom: 5px;
        }
        .footer-middle {
            display: flex;
            gap: 40px;
        }
        .footer-links h3 {
            font-size: 14px;
            color: #fff;
            margin-bottom: 10px;
        }
        .footer-links a {
            display: block;
            color: #ccc;
            text-decoration: none;
            font-size: 12px;
            margin-bottom: 5px;
        }
        .footer-links a:hover {
            color: #0066cc;
        }
        .footer-right {
            font-size: 12px;
            line-height: 1.8;
        }
        .footer-bottom {
            background-color: #111;
            color: #666;
            text-align: center;
            padding: 15px 0;
            font-size: 12px;
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <!-- 顶部标题栏 -->
    <div class="header-top">
        <div class="logo">
            <img src="../images/1.jpg" alt="校徽">
            <div class="title">
                <h1>哈哈哈大学质量管理与评估中心</h1>
                <p>Quality Management and Evaluation Center, Nanning College of Technology</p>
            </div>
        </div>
        <div class="search-box">
            <input type="text" placeholder="搜索...">
            <button>🔍</button>
        </div>
    </div>

    <!-- 导航栏 -->
    <div class="nav">
        <a href="#">网站首页</a>
        <a href="#">机构设置</a>
        <a href="#">质量监控</a>
        <a href="#">教学评估</a>
        <a href="#">文件制度</a>
        <a href="#">下载中心</a>
        <a href="#">学校首页</a>
    </div>

    <!-- 图片于视频 -->
    <div class="banner">
        <div class="left">
            <img src="../images/1.jpg" alt="校门">
        </div>
        <div class="right">
            <video src="../video/1.mp4" controls autoplay muted width="600px" height="400px"></video>
        </div>
    </div>

    <!-- 内容区 -->
    <div class="content">
        <div class="section">
            <h2>新闻动态 <a href="#">MORE ></a></h2>
            <ul class="news-list">
                <li><a href="#">学校召开"十四五"规划总结暨"十五五"规划...</a><span>2025-12-30</span></li>
                <li><a href="#">学校开展2025届本科毕业设计(论文)专项检...</a><span>2025-12-18</span></li>
            </ul>
        </div>
        <div class="section">
            <h2>通知公告 <a href="#">MORE ></a></h2>
            <ul class="news-list">
                <li><a href="#">2025年度各教学单位质量管理与评估相关工作...</a><span>2025-12-19</span></li>
                <li><a href="#">质量管理与评估中心关于2025年年度考核拟定...</a><span>2025-12-19</span></li>
            </ul>
        </div>
    </div>

    <!-- ===== 新增:黑色页脚 ===== -->
    <div class="footer">
        <div class="footer-left">
            <img src="../images/1.jpg" alt="校徽" class="footer-logo">
            <div class="footer-title">哈哈哈大学</div>
            <div class="footer-subtitle">hahahahahahahahahhahaha</div>
            <div class="footer-icons">
                <a href="#"><i class="fab fa-weibo"></i> 官方微博</a>
                <a href="#"><i class="fab fa-weixin"></i> 官方微信</a>
                <a href="#"><i class="fas fa-graduation-cap"></i> 招生就业</a>
                <a href="#"><i class="fas fa-vr-cardboard"></i> VR实景</a>
                <a href="#"><i class="fas fa-wifi"></i> IPv6</a>
            </div>
        </div>
        <div class="footer-middle">
            <div class="footer-links">
                <h3>校内链接</h3>
                <a href="#">学校首页</a>
                <a href="#">质量管理与评估中心</a>
                <a href="#">教务处</a>
                <a href="#">学生处</a>
            </div>
            <div class="footer-links">
                <h3>专题网站</h3>
                <a href="#">本科教学审核评估</a>
                <a href="#">质量工程</a>
                <a href="#">教学督导</a>
            </div>
            <div class="footer-links">
                <h3>友情链接</h3>
                <a href="#">教育部</a>
                <a href="#">哈哈教育厅</a>
                <a href="#">中国高等教育学生信息网</a>
            </div>
        </div>
        <div class="footer-right">
            <p>哈哈哈校区:哈哈哈大学2025.1.18</p>
            <p>哈哈哈校区:哈哈哈哈哈哈哈哈</p>
            <p>校 办:0771-6031550(哈哈)| 0773-8998055(嘻嘻)</p>
            <p>招生办:0771-6031555(哈哈)| 0773-8998009(嘻嘻)</p>
            <p style="margin-top: 10px;">
                <a href="#" style="color: #0066cc; text-decoration: none;">
                    <a></a>校长信箱 </a> |
                <a href="#" style="color: #0066cc; text-decoration: none;">
                    <a>招生办信箱 </a> |
                <a href="#" style="color: #0066cc; text-decoration: none;">
                    <a> 监督举报 </a>
                </a>
            </p>
        </div>
    </div>
    <div class="footer-bottom">
        版权所有 哈哈哈大学 <span style="margin: 0 10px;"></span> 
    </div>
</body>
</html>

实现效果如下:

相关推荐
wdfk_prog2 小时前
[Linux]学习笔记系列 -- [drivers][base]cpu
linux·笔记·学习
Arms2063 小时前
python时区库学习
开发语言·python·学习
世人万千丶3 小时前
Day 5: Flutter 框架文件系统交互 - 鸿蒙沙盒机制下的文件读写与安全策略
学习·flutter·华为·harmonyos·鸿蒙·鸿蒙系统
子云之风3 小时前
LSPosed 项目编译问题解决方案
java·开发语言·python·学习·android studio
烤麻辣烫3 小时前
java进阶--刷题与详解-2
java·开发语言·学习·intellij-idea
我的xiaodoujiao4 小时前
使用 Python 语言 从 0 到 1 搭建完整 Web UI自动化测试学习系列 40--完善优化 Allure 测试报告显示内容
python·学习·测试工具·pytest
Quintus五等升4 小时前
深度学习②|实现人数回归预测
人工智能·深度学习·学习·机器学习·回归
妄汐霜4 小时前
小白学习笔记(MySQL基础中其他知识)
笔记·学习·mysql
我的xiaodoujiao4 小时前
使用 Python 语言 从 0 到 1 搭建完整 Web UI自动化测试学习系列 41--自定义定制化展示 Allure 测试报告内容
python·学习·测试工具·pytest