、、、
//HTMLCSS js简单登录跳转界面 实现验证码功能
还需要在创建一个login.html文件 放在于index.html文件同项目下。
css部分:* {
margin: 0;
padding: 0;
}
html {
height: 100%;
}
body {
height: 100%;
}
.div1 {
height: 100%;
background-image: linear-gradient(to right, #30cfd0, #330867);
}
.div2 {
width: 300px;
height: 400px;
background-color: white;
position: relative;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 10px;
padding: 0 50px;
}
.div3 {
font-size: 25px;
text-align: center;
line-height: 100px;
color: black;
font-weight: bold;
}
.div4 .inp1{
display: inline-block;
width: 85%;
border: 0;
border-bottom: 1px solid #ccc;
padding: 10px 0 10px 10px;
margin-bottom: 20px;
outline: none;
bac