登录页面
<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{display:flex;flex-direction:column;}
.header{width:100%;height:72px;
display:flex;
justify-content:center;
}
.main{width:100%;flex:100%;background-color:blue;}
.header .content{width:1200px;height:72px;
display:flex;
align-items:center;
}
.header .content img{width:100px;height:30px;}
.main{
display:flex;
justify-content: center;
align-items: center;
}
.login-box{
width:400px;
height: 240px;
background-color: #fff;
border-radius:8px;
box-shadow: #888 10px 10px 20px;
}
.login{
height:180px;
display:flex;
flex-direction: column;
justify-content: space-evenly;
}
.login p {
height:40px;
/* background-color: orange; */
display:flex;
justify-content: space-evenly;
align-items: center;
}
.login p input{
width:260px;
height:32px;
}
.login p button{
outline: none; /* 去掉外边框*/ border: none; /* 去掉边框*/
width:300px;
height:32px;
border-radius:16px;
background-color:#4872f6;
color:white;
}
.login p button:hover{background-color:#143bbd;
font-weight:600;
}
</style>
</head>
<body>
<!-- 页头 -->
<div class="content">
</div>
</div>
<!-- 页面 -->
<div class="main">
<!-- 登录窗口 -->
<div class="login-box">
<div class="header">管理员登录</div>
<div class="login">
<p>
<label for="zhanghao">账号:</label>
<input type="text" name="zhanghao" id="zhanghao"
placeholder="请输入账号">
</p>
<p>
<label for="mima">密码:</label>
<input type="password" name="mima" id="mima"
placeholder="请输入密码">
</p>
<p>
<button>登录</button>
</p>
</div>
</div>
</div>
</body>
</html>
后台页面
<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="登录页面,后台管理页面">
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...




