以下是一个简单的学生信息管理系统的HTML代码,模仿了https://ceee.hhu.edu.cn/网站的网页风格。

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生信息管理系统</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }
        
        header {
            background-color: #333;
            color: #fff;
            padding: 10px;
            text-align: center;
        }
        
        h1 {
            margin: 0;
            font-size: 28px;
        }
        
        nav {
            background-color: #eee;
            padding: 10px;
            text-align: center;
        }
        
        nav ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
        }
        
        nav ul li {
            display: inline-block;
            margin-right: 10px;
        }
        
        nav ul li a {
            color: #333;
            text-decoration: none;
            padding: 5px 10px;
        }
        
        nav ul li a:hover {
            background-color: #333;
            color: #fff;
        }
        
        main {
            padding: 20px;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th, td {
            border: 1px solid #333;
            padding: 10px;
            text-align: left;
        }
        
        th {
            background-color: #333;
            color: #fff;
        }
        
        form {
            margin-bottom: 20px;
        }
        
        form label {
            display: block;
            margin-bottom: 5px;
        }
        
        form input[type="text"], form select {
            width: 100%;
            padding: 5px;
            margin-bottom: 10px;
        }
        
        form input[type="submit"] {
            background-color: #333;
            color: #fff;
            padding: 5px 10px;
            border: none;
            cursor: pointer;
        }
        
        form input[type="submit"]:hover {
            background-color: #555;
        }
    </style>
</head>
<body>
    <header>
        <h1>学生信息管理系统</h1>
    </header>
    <nav>
        <ul>
            <li><a href="#">首页</a></li>
            <li><a href="#">学生列表</a></li>
            <li><a href="#">添加学生</a></li>
            <li><a href="#">修改学生</a></li>
            <li><a href="#">删除学生</a></li>
        </ul>
    </nav>
    <main>
        <h2>学生列表</h2>
        <table>
            <thead>
                <tr>
                    <th>学号</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>年级</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>001</td>
                    <td>张三</td>
                    <td>男</td>
                    <td>一年级</td>
                </tr>
                <tr>
                    <td>002</td>
                    <td>李四</td>
                    <td>女</td>
                    <td>二年级</td>
                </tr>
                <tr>
                    <td>003</td>
                    <td>王五</td>
                    <td>男</td>
                    <td>三年级</td>
                </tr>
            </tbody>
        </table>
        <h2>添加学生</h2>
        <form>
            <label for="studentId">学号:</label>
            <input type="text" id="studentId" name="studentId">
            <label for="studentName">姓名:</label>
            <input type="text" id="studentName" name="studentName">
            <label for="studentGender">性别:</label>
            <select id="studentGender" name="studentGender">
                <option value="男">男</option>
                <option value="女">女</option>
            </select>
            <label for="studentGrade">年级:</label>
            <input type="text" id="studentGrade" name="studentGrade">
            <input type="submit" value="提交">
        </form>
    </main>
</body>
</html>

这只是一个简单的示例,你可以根据实际需求进一步完善和扩展。

用HTML写一个学生信息管理系统网页风格和httpsceeehhueducn一样

原文地址: https://www.cveoy.top/t/topic/i1ZQ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录