制作一个网页,有登录界面、注册界面和个人相册界面,注册成功后在登录界面登录成功后进入个人相册界面,个人相册里的所有图片是顺时针旋转的。若失败返回登录界面,登录界面和注册界面可相互切换。
代码:
login.html
<!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>登录界面</title>
<style>
* {
margin: 0;
padding: 0;
}
html {
height: 100%;
width: 100%;
overflow: hidden;
margin: 0;
padding: 0;
background: url(E:/source/material/images/c.jpg) no-repeat 0px 0px;
background-repeat: no-repeat;
background-size: 100% 100%;
-moz-background-size: 100% 100%;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
#loginDiv {
width: 40%;
display: flex;
justify-content: center;
align-items: center;
height: 300px;
background-color: rgba(75, 81, 95, 0.3);
box-shadow: 7px 7px 17px rgba(52, 56, 66, 0.5);
border-radius: 5px;
}
#name_trip {
margin-left: 50px;
color: red;
}
p {
margin-top: 30px;
margin-left: 20px;
color: rgb(2, 24, 24);
font-size: 20px;
}
input {
margin-left: 0px;
border-radius: 5px;
border-style: hidden;
height: 30px;
width:300px;
background-color: rgba(204, 180, 204, 0.5);
outline: none;
color: #0c0116;
padding-left: 20px;
}
.button {
border-color: cornsilk;
background-color: rgba(100, 149, 237, .7);
color: aliceblue;
border-style: hidden;
border-radius: 5px;
width: 100px;
height: 31px;
font-size: 16px;
text-align: center;
}
</style>
</head>
<body>
<div id="loginDiv">
<div id="form">
<h1 style="text-align: center;color: rgb(13, 13, 14);">立即登录</h1>
<p style="text-align: center;">邮箱</p>
<input type="text" placeholder="请输入邮箱" id="email"/>
<p style="text-align: center;">密码</p>
<input type="password" placeholder="密码长度至少为六位" id="passworld"/>
</br></br>
<a href="#" id="forget" style="text-align: center;">忘记密码?</a>
</br>
<div style="text-align: center;margin-top: 30px;">
<button onclick="denlu()" class="button">登录</button>
<button id="b2"onclick="click()" class=