需要本地运行,不能在编辑器上直接快捷键运行
引用getCookie封装方法
333
需要两张网页样式
首页登录框样式
css样式
<style>
*{
margin: 0;
padding: 0;
}
html,body{
width: 100%;
height: 100%;
background-color: lightpink;
}
a{
font-size: 20px;
color: red;
}
.login{
width: 400px;
height: 200px;
border: 1px solid #000;
position: absolute;
left: 50%; top: 50%;
z-index: 99;
margin: -100px 0 0 -200px;
background-color: #fff;
display: none;
}
.login span{
position: absolute;
right: 10px; top: 10px;
color: red;
cursor: pointer;
}
.mask{
position: absolute;
top: 0;
left: 0;
z-index: 90;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.4);
display: none;
}<
/style>
html样式
<a href=