You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
2.7 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0 0;
padding: 0 0;
}
.main{
width: 400px;
height: 400px;
background-color: white;
margin:0 auto;
box-shadow:0px 0px 10px rgba(0, 0, 0,0.3) ;
margin-top: 180px;
padding-top: 30px;
position: relative;
}
.main h2{
margin:0 140px;
margin-bottom: 20px;
}
.main div p{
display: inline-block;
color: #666666;
margin-top: 20px;
}
.main div p ~ a{
text-decoration: none;
color: #0099ff;
font-size: 12px;
background: url('修改.png') no-repeat;
padding-left: 15px;
margin-left: 15px;
cursor: pointer;
}
.main div p ~ a:hover{
text-decoration: underline;
}
.p1{
margin-left: 77px;
}
.p2{
margin-left: 20px;
}
a:hover{
text-decoration: underline;
}
.save{
margin-left: 174px;
text-decoration: none;
color: #0099ff;
margin-top: 30px;
}
.back{
position: absolute;
bottom: 104px;
margin: 0 158px;
text-decoration: none;
color: #0099ff;
}
.back:hover{
text-decoration:underline;
}
.save-box{
margin-top: 20px;
}
</style>
</head>
<body>
<div class="main">
<h2>用户编辑</h2>
<div>
<p class="p1">邮箱</p>
<p class="p2">{{ user.email }}</p>
</div>
<div>
<p class="p1">用户名</p>
<p class="p2">{{ user.username }}</p>
<a href="http://127.0.0.1:5000/username_edit?username={{ user.username }}">修改</a>
</div>
<div>
<p class="p1">密码</p>
<p class="p2">*********</p>
<a href="http://127.0.0.1:5000/edit2?username={{ user.username }}">修改</a>
</div>
<div class="save-box">
<a href='/' class="save">保存</a>
</div>
<div>
<a href='/' class="back">返回首页</a>
</div>
</div>
</body>
</html>