2

<html lang="en">
<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{
display:flex;
}
.left{
width:280px;
height:100%;
background-color: blue;

display:flex;
flex-direction:column;
justify-content: space-between;
align-items: center;

}
.side{
height:500px;
width: 100%;
background-color: bisque;
}
.side.logo{
width: 100%;
height: 50px;

display: flex;
justify-content: center;
align-items: center;
}
.side.log img{
    width: 120px;
    height: 38px;
}
.side.nav-items{
 width: 100%;
 height: 50px;
 text-align: center;
 line-height: 50px;
 font-size: 18px;
 cursor: pointer;
}
.side.nav-items:hover{
    background-color: #fff;
    color:#333;
    font-weight:600;
}

.exit{
width:90%;
height:50px;
background-color: bisque;
line-height: 50px;
text-align: center;
}

.right{
flex:1;
height:100%;
/background-color: antiquewhite;/
display: flex;
flex-direction: column;
}
.header,
.footer{
height: 50px;
width: 100%;

}

.header{
display: flex;
justify-content: space-between;
align-items: center;
padding:20px;
}
.header div:nth-of-type(1){
width: 100px;
height: 30px;
border:solid 1px #498afa;
color:#498afa;
background-color: #fff;
border-radius: 8px;
text-align: center;
line-height: 30px;
font-size: 12px;
cursor:pointer
}

.header div:nth-of-type(1){
background-color: #498afa;
color:white;

}
.header div:nth-of-type(2){
font-size: 18px;
letter-spacing: 3px;
}
.header div:nth-of-type(3){
display: flex;
align-items: center;
}
.header div:nth-of-type(3) img{
width: 30px;
height: 30px;
margin-right:10px ;
}
.main{
flex:1;
background-color: beige;
}

</style>
</head>
<body>
<div class="left">
<div class="side">
<div class="logo">
<img src="./images/下载.png"alt="">
</div>
<div class="nav-items">首页</div>
<div class="nav-items">管理员管理</div>
<div class="nav-items">会员管理</div>
<div class="nav-items">店铺管理</div>
<div class="nav-items">商品管理</div>
<div class="nav-items">订单管理</div>
</div>
<div class="exit">
安全退出
</div>
</div>
<div class="right">
<div class="header">
<div>收起菜单</div>
<div>管理系统</div>
<div>
<img src="./images/1682391068745168.png" alt="">
<span>干豆腐</span>
</div>
</div>
<div class="main"></div>
<div class="footer"></div>

</div>

</body>
</html>

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

推荐阅读更多精彩内容

  • transform transform:translate(x,y) /*向x轴或者y轴方向移动*/ transf...
    韦栋阅读 233评论 0 0
  • <!DOCTYPE html> 小鹅通 首页 解决方案 产品服务 价格 活动 案例 渠道合作 下载与...
    明天早点睡_abdb阅读 30评论 0 0
  • 代码实现 ....css {margin: 0;padding: 0;box-sizing: border-box...
    jhsdgfa阅读 60评论 0 0
  • _________________________________________________________...
    fastwe阅读 492评论 0 0
  • CSS 面试题汇总 1. 介绍下 BFC 及其应用 参考答案:参考答案:所谓 BFC,指的是一个独立的布局环境,...
    5cc9c8608284阅读 745评论 0 1