1、模仿登录界面拖动登录框
<style>
* {
margin: 0 auto;
padding: 0 auto;
}
div {
position: absolute;
width: 100%;
height: 780px;
text-align: center;
padding-top: 20px;
}
.mask {
display: none;
position: absolute;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.2);
}
div a {
text-decoration: none;
color: #000;
}
.login {
display: none;
position: absolute;
top: 50%;
left: 50%;
width: 200px;
height: 200px;
background-color: #fff;
transform: translate(-50%, -50%);
}
.login span {
position: absolute;
top: -10px;
left: 190px;
display: inline-block;
width: 30px;
height: 30px;
}
.login span img {
width: 30px;
height: 30px;
}
</style>
<body>
<div class="mask">