web第二次作业

一.后台管理系统主页

作业分析

本次使用html标签编写如下效果


image.png

代码实现

<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理系统</title>
    <link rel="stylesheet" href="./左边内容.css">
    <link rel="stylesheet" href="./font_59egla46mxp/iconfont.css">
</head>
<style>
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

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

    body {
        display: flex;
    }
</style>

<body>
    <div class="zuobiang">
        <div class="zuoshang"><span>中国云端城</span></div>
        <div class="zuoxiang">
            <div class="nr">
                <p><i class="iconfont icon-shouye"></i>首页</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-shezhi"></i>设置</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-yonghuguanli_huaban"></i>用户管理</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-wodejiangchi"></i>奖池管理</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-wodejiangchi"></i>主播认证</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-zhiboguanli"></i>直播管理</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-icon-shipinguanli"></i>视频管理</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-caiwuguanli"></i>财务管理</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-changyonglvyouyewutubiao_fuzhi_jiating"></i>家族管理</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-daojuguanli"></i>道具管理</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-hongbaoguanli"></i>红包管理</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-shouhu"></i>守护管理</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-dengjiguanli"></i>等级管理</p>
            </div>
            <div class="nr">
                <p><i class="iconfont icon-yaoqingjiangli"></i>邀请奖励</p>
            </div>
        </div>
    </div>
    <div class="youbiang">
        <div class="head">云端中国城管理系统</div>
        <div class="body">空白</div>
        <div class="end">云端中国城管理系统</div>
    </div>
</body>

</html>

以下为css样式

.zuobiang {
    width: 200px;
    height: 100%;
    background-color: antiquewhite;
    display: flex;
    flex-direction: column;
}

.zuoshang {
    width: 200px;
    height: 75px;
    color: white;
    background-color: #060606;
    align-items: center;
    line-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.zuoxiang {
    flex: 1;
    width: 200px;
    background-color: #4e5459;
}

.nr {
    width: 200px;
    height: 46px;
    align-items: center;
    line-height: 46px;
    cursor: pointer;
    color: white;
}

.nr :hover {
    font-size: large;
    transform: matrix(rgb(62, 142, 217));
}

.zuobiang ul {
    list-style: none;
}

.youbiang {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.youbiang .head {
    height: 75px;
    align-items: center;
    line-height: 75px;
    border-bottom: solid 2px #4e5459;
}

.youbiang .body {
    flex: 1;
    align-items: center;
    border-bottom: solid 2px #4e5459;
}

.youbiang .end {
    height: 100px;
    align-items: center;
    line-height: 100px;
    border-bottom: solid 2px #4e5459;
}

二.管理员登录页面

本次使用html标签编写如下效果


image.png

代码实现

<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登入系统</title>
    <link rel="stylesheet" href="./登入系统.css">
</head>

<body>
    <div class="xt">
        <div class="b"><span>登入管理系统</span></div>
        <div class="content">
            <p>
                <label for="zhanghao">账号:</label>
                <input type="text" name="zhanghao" id="zhanghao" placeholder="请输入账号">
            </p>
            <p>
                <label for="mima">密码:</label>
                <input type="text" name="mima" id="mima" placeholder="请输入密码">
            </p>
            <p>
                <button class="c">登入</button>
            </p>
        </div>
</body>

</html>

以下是css样式

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

html,
body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #17ead9, #6078ea)
}

body {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.xt {
    width: 300px;
    height: 200px;
    background-color: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.xt .b {
    width: 300px;
    height: 50px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-bottom: solid 3px #4e5459;
}

.xt .b span {
    font-size: 20px;
    font-weight: 5px;
    align-items: center;
    line-height: 50px;
}

.xt .content {
    width: 300px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.c {
    cursor: pointer;
}

.c :hover {
    color: white;
    background-color: #6078ea;
}

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

推荐阅读更多精彩内容

  • 作业分析 本次使用table表格标签编写如下效果 代码实现 个人总结 对于图片的缩放有待研究,CSS语言也需要深究
    繪灮阅读 45评论 0 0
  • 作业标题 项目任务:使用表格的方式,完成网页效果提示:一行6列的表格,没有边框 图片示例 网页代码 使用VScod...
    MoonArchive阅读 33评论 0 1
  • 本次表格插入超链接效果如下 代码实现 个人总结 超链接插入时的代码格式问题以及插入的地方与图片关系
    eeb48678a138阅读 49评论 0 1
  • 作业分析 使用html标签实现点击图片跳转到相应网页 代码实现 个人总结 此代码多加了一个 标签,内容不算复杂,...
    马永跃阅读 59评论 0 0
  • 模拟小鹅通首页 html代码 <!DOCTYPE html> 小鹅通-首页 <!-- 引入页面样...
    dustcell阅读 50评论 0 0