Visual Studio Code:Web前端——登录、注册界面、个人相册

制作一个网页,有登录界面、注册界面和个人相册界面,注册成功后在登录界面登录成功后进入个人相册界面,个人相册里的所有图片是顺时针旋转的。若失败返回登录界面,登录界面和注册界面可相互切换。
代码:
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=
  • 11
    点赞
  • 230
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值