Web第二次作业

<!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>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(to bottom, #007BFF, #0056b3);
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .login-container {
            background-color: #fff;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            width: 350px;
        }

        .login-heading {
            text-align: center;
            color: #333;
            margin-bottom: 30px;
        }

        .login-form label {
            display: block;
            margin-bottom: 8px;
            color: #666;
        }

        .login-form input {
            width: 100%;
            padding: 12px;
            margin-bottom: 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;
        }

        .login-form input:focus {
            outline: none;
            border-color: #007BFF;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
        }

        .login-form button {
            width: 100%;
            padding: 12px;
            background-color: #007BFF;
            color: #fff;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .login-form button:hover {
            background-color: #0056b3;
        }

        .login-reason {
            text-align: center;
            color: #999;
            font-size: 14px;
            margin-top: 20px;
        }
    </style>
</head>

<body>
    <div class="login-container">
        <h2 class="login-heading">管理员登录</h2>
        <form class="login-form">
            <label for="username">账户</label>
            <input type="text" id="username" placeholder="请输入账户">
            <label for="password">密码</label>
            <input type="password" id="password" placeholder="请输入密码">
            <button type="submit">登录</button>
        </form>
        <p class="login-reason">请使用管理员账户登录以管理系统。</p>
    </div>
</body>
</html>
<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            width: 100%;
            height: 100%;
        }

        body {
            font-size: 63.5%;
            display: flex;
        }

        .container {
            height: 100%;
            width: 200px;
            background-color: #565c63;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .box {
            width: 100px;
            height: 20px;
            color: white;
            text-align: center;
            line-height: 20px;
        }

        .right-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .nav-bar {
            height: 50px;
            background-color: #333;
            display: flex;
            align-items: center;
            padding: 0 20px;
        }

        .nav-bar a {
            color: white;
            text-decoration: none;
            margin-right: 20px;
            font-size: 16px;
        }

        .frames-container {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 10px;
            padding: 10px;
        }

        .frame {
            background-color: #e0e0e0;
        }

        .frame:nth-child(1) {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
        }

        .frame:nth-child(2) {
            grid-column: 2 / 4;
            grid-row: 1 / 2;
        }

        .frame:nth-child(3) {
            grid-column: 1 / 3;
            grid-row: 2 / 3;
        }

        .frame:nth-child(4) {
            grid-column: 3 / 4;
            grid-row: 2 / 3;
        }

        .frame:nth-child(5) {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
        }

        .frame:nth-child(6) {
            grid-column: 2 / 4;
            grid-row: 2 / 3;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="box">首页</div>
        <div class="box">人员管理</div>
        <div class="box">系统管理</div>
        <div class="box">日志管理</div>
    </div>
    <div class="right-content">
        <div class="nav-bar">
            <a href="#">首页</a>
            <a href="#">关于我们</a>
            <a href="#">联系我们</a>
        </div>
        <div class="frames-container">
            <div class="frame"></div>
            <div class="frame"></div>
            <div class="frame"></div>
            <div class="frame"></div>
            <div class="frame"></div>
            <div class="frame"></div>
        </div>
    </div>
</body>
</html>
image.png

image.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 一.后台管理系统主页 作业分析 本次使用html标签编写如下效果 代码实现 以下为css样式 二.管理员登录页面 ...
    雾权阅读 29评论 0 0
  • 作业分析 使用html标签实现点击图片跳转到相应网页 代码实现 个人总结 此代码多加了一个 标签,内容不算复杂,...
    马永跃阅读 67评论 0 0
  • 作业标题 项目任务:使用表格的方式,完成网页效果提示:一行6列的表格,没有边框 图片示例 网页代码 使用VScod...
    MoonArchive阅读 36评论 0 1
  • 作业分析 本次使用table表格标签编写如下效果 代码实现 个人总结 对于图片的缩放有待研究,CSS语言也需要深究
    繪灮阅读 48评论 0 0
  • 本次表格插入超链接效果如下 代码实现 个人总结 超链接插入时的代码格式问题以及插入的地方与图片关系
    eeb48678a138阅读 52评论 0 1