web第二次作业

ops/2025/2/10 20:18:45/

一.后台管理系统首页代码

1.html代码

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>实验</title>

    <link rel="stylesheet" href="../css/style.css">

    <link rel="stylesheet" href="../css/demo01.css">

</head>

<body>

    <div id="container">

        <div class="left">

            <div>

                <div class="logo">

                    <img src="../img/logo.png" alt="">

                    <span>OPENLAB管理系统</span>

                </div>

                <div class="header-img">

                    <img src="../img/tx.png" alt="">

                    <h2>管理员:星</h2>

                </div>

                <ul class="nav">

                    <li>首页</li>

                    <li>系统管理</li>

                    <li>用户管理</li>

                    <li>店铺管理</li>

                    <li>订单管理</li>

                    <li>积分管理</li>

                </ul>

            </div>

            <div class="exit">

                <span>安全退出</span>

            </div>

        </div>

        <div class="right">

            <div class="header">

                <span>收起菜单</span>

                <span>OPENLAB管理系统</span>

                <span>管理员:星</span>

            </div>

            <div class="main">

                <div class="content">

                    <h2>用户信息管理</h2>

                    <div class="line"><p></p><div>妖娆的分割线</div><p></p></div>

                    <div class="search-box">

                        <div>

                            <label for="username">账号:</label>

                            <input type="text" placeholder="请输入账号">

                        </div>

                        <div>

                            <label for="eamil">邮箱:</label>

                            <input type="email" placeholder="请输入邮箱">

                        </div>

                        <div>

                            <button>搜索</button>

                        </div>

                    </div>

                    <div class="line"><p></p><div>妖娆的分割线</div><p></p></div>

                    <div class="tb-title">

                        <div>ID</div>

                        <div>账号</div>

                        <div>密码</div>

                        <div>头像</div>

                        <div>邮箱</div>

                        <div>状态</div>

                        <div>操作</div>

                    </div>

                    <div class="tb-content">

                        <div>001</div>

                        <div>tom</div>

                        <div>******</div>

                        <div><img src="../img/tx.png" alt=""></div>

                        <div>tom@openlab.com</div>

                        <div><span class="s-active">启用</span></div>

                        <div>

                            <button class="edit">编辑</button>

                            <button class="disable">禁用</button>

                            <button class="delete">删除</button>

                        </div>

                    </div>

                    <div class="tb-content">

                        <div>002</div>

                        <div>jerry</div>

                        <div>******</div>

                        <div><img src="../img/tx.png" alt=""></div>

                        <div>jerry@openlab.com</div>

                        <div><span class="s-active">启用</span></div>

                        <div>

                            <button class="edit">编辑</button>

                            <button class="disable">禁用</button>

                            <button class="delete">删除</button>

                        </div>

                    </div>

                </div>

            </div>

            <div class="footer">

                <span>版权所有,翻版必究</span>

            </div>

        </div>

    </div>

</body>

</html>

2.style.css代码

*{

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

html,body{

    width: 100%;

    height: 100%;

}

3.demo01.css代码

#container{

    width: 100%;

    height: 100%;

    display: flex;

}

.left{

    width: 300px;

    height: 100%;

    background-color: #203453;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}

.left > div:nth-of-type(1){

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 30px;

}

.left .logo{

    width: 100%;

    height: 50px;

    background-color: #f5f5f5;

    display: flex;

    flex-direction: row;

    justify-content: center;

    align-items: center;

}

.logo img{

    width: 40px;

    height: 40px;

}

.logo span{

    font-size: 20px;

    font-weight: 600;

    letter-spacing: 3px;

}

.left .header-img{

    width: 100%;

    /* background-color: antiquewhite; */

    color: white;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

}

.left .header-img img{

    width: 100px;

    height: 100px;

    border-radius: 50%;

}

.left .nav{

    width: 90%;

    list-style: none;

    /* background-color: salmon; */

}

.nav li,

.exit{

    width: 100%;

    height: 50px;

    font-size: 18px;

    color: white;

    cursor: pointer;

    line-height: 50px;

    text-align: center;

}

.nav li:hover,

.exit:hover{

    background-color: white;

    color: #203453;

    font-weight: 600px;

}

.left .exit{

    width: 100%;

    height: 50px;

    /* background-color: aquamarine; */

}

.right{

    height: 100%;

    flex: 1;

    background-color: #f2f2f1;

    display: flex;

    flex-direction: column;

}

.right .header,

.right .footer{

   

    height: 50px;

    color: #333;

    background-color: #f5f5f5;

}

.right .header{

    border-bottom: solid 1px #ccc;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-left: 20px;

    padding-right: 20px;

}

.header span:nth-of-type(1){

    display: inline-block;

    width: 100px;

    height: 30px;

    background-color: #ddd;

    border-radius: 8px;

    line-height: 30px;

    text-align: center;

    font-size: 14px;

    cursor: pointer;

}

.header span:nth-of-type(2){

    font-size: 20px;

    font-weight: 600;

}

.right .footer{

    border-top: solid 1px #ccc;

    font-size: 12px;

    color: #ccc;

    line-height: 50px;

    text-align: center;

}

.main{

    flex: 1;

    padding: 10px;

}

.main .content{

    width: 100%;

    height: 100%;

    padding: 30px;

    background-color: white;

    border-radius: 10px;

}

.main h2{

    color: #444;

}

.main .line{

    display: flex;

    flex-direction: row;

    align-items: center;

}

.line p{

    flex: 1;

    height: 2px;

    background-color: #ccc;

}

.line div{

    width: 120px;

    font-size: 12px;

    color: #ccc;

    text-align: center;

   

}

.main .search-box{

    padding: 10px;

    display: flex;

    gap: 50px;

}

.search-box label{

    font-size: 20px;

    font-weight: 500;

}

.search-box input{

    width: 260px;

    height: 30px;

    outline: none;

    border: solid 1px #888;

    border-radius: 3px;

    padding: 5px;

}

.search-box button{

    width: 120px;

    height: 30px;

    border: none;

    background-color: #1094d5;

    color: white;

    letter-spacing: 2px;

    cursor: pointer;

    border-radius: 3px;

}

.tb-title,

.tb-content{

    width: 100%;

    height: 80px;

    font-weight: 700;

    align-items: center;

    display: flex;

    justify-content: space-evenly;

    border-bottom: solid 2px #555;

}

.tb-title >div:nth-of-type(1),

.tb-content >div:nth-of-type(1),

.tb-title >div:nth-of-type(3),

.tb-content >div:nth-of-type(3),

.tb-title >div:nth-of-type(4),

.tb-content >div:nth-of-type(4),

.tb-title >div:nth-of-type(6),

.tb-content >div:nth-of-type(6)

{

    width: 120px;

}

.tb-title >div:nth-of-type(2),

.tb-content >div:nth-of-type(2){

    width: 200px;

}

.tb-title >div:nth-of-type(5),

.tb-content >div:nth-of-type(5){

    width: 220px;

}

.tb-title >div:nth-of-type(7),

.tb-content >div:nth-of-type(7){

    flex: 1;

}

.tb-content{

    font-weight: 500;

    border-bottom: solid 1px #888;

}

.tb-content >div>img{

    width: 50px;

    height: 50px;

    border-radius: 50%;

}

.edit,

.disable,

.delete{

    width: 60px;

    height: 20px;

    border-radius: 9px;

    border: none;

    background-color: #555;

    color: white;

    cursor: pointer;

}

.edit{

    background-color: rgb(19, 201, 19);

}

.delete{

    background-color: rgb(237, 17, 17);

}

二.网页展示效果


http://www.ppmy.cn/ops/157346.html

相关文章

DNS域名服务器的安装及配置

1.安装DNS域名服务器 sudo apt-get install bind9 2.安装完成后进入/etc/bind目录 cd /etc/bind 进入目录后修改named.conf.local文件 sudo vim named.conf.local 创建test.com文件 sudo touch test.com 修改test.com文件 sudo vim test.com 保存后启动bind9 # servic…

没有服务器和显卡电脑如何本地化使用deepseek|如何通过API使用满血版deepseek

目录 一、前言二、使用siliconflow硅基流动 API密钥1、注册硅基流动2、创建API密钥3、下载AI客户端4、使用API密钥5、效果演示三、使用deepseek官方API密钥1、创建API密钥2、使用API密钥3、效果演示四、总结一、前言 上篇文章我介绍了如何通过云服务器或者显卡电脑来本地化部署…

51单片机俄罗斯方块开机动画

/************************************************************************************************************** * 名称&#xff1a;Game_Star * 功能&#xff1a;开机动画 * 参数&#xff1a;NULL * 返回&#xff1a;NULL ******************************************…

【DeepSeek】DeepSeek小模型蒸馏与本地部署深度解析DeepSeek小模型蒸馏与本地部署深度解析

一、引言与背景 在人工智能领域&#xff0c;大型语言模型&#xff08;LLM&#xff09;如DeepSeek以其卓越的自然语言理解和生成能力&#xff0c;推动了众多应用场景的发展。然而&#xff0c;大型模型的高昂计算和存储成本&#xff0c;以及潜在的数据隐私风险&#xff0c;限制了…

IDEA启动项目慢问题处理

IDEA启动项目慢问题处理 一、问题现象二、问题排查排查点1&#xff1a;idea内存排查点2&#xff1a;应用内存排查点3&#xff1a;shorten command lineclasspath filejar manifest 排查点4&#xff1a;jstack排查 三、问题定位 一、问题现象 多模块工程&#xff0c;启动模块为…

【漫话机器学习系列】086.机器学习中的能力(Capacity)

机器学习中的能力&#xff08;Capacity&#xff09; 1. 引言 在机器学习中&#xff0c;模型的能力&#xff08;Capacity&#xff09;是一个重要的概念&#xff0c;它决定了模型能够学习的函数复杂度。简单来说&#xff0c;能力衡量了一个模型拟合不同函数的能力。能力越强的模…

深度求索(DeepSeek)的AI革命:NLP、CV与智能应用的技术跃迁

Deepseek官网&#xff1a;DeepSeek 引言&#xff1a;AI技术浪潮中的深度求索 近年来&#xff0c;人工智能技术以指数级速度重塑全球产业格局。在这场技术革命中&#xff0c;深度求索&#xff08;DeepSeek&#xff09;凭借其前沿的算法研究、高效的工程化能力以及对垂直场景的…

STM32 RTC亚秒

rtc时钟功能实现&#xff1a;rtc模块在stm32内部&#xff0c;由电池或者主电源供电。如下图&#xff0c;需注意实现时仅需设置一次初始化。 1、stm32cubemx 代码生成界面设置&#xff0c;仅需开启时钟源和激活日历功能。 2、生成的代码,需要对时钟进行初始化&#xff0c;仅需…