我的第一个“大工程”,欢迎来到m78星云

本文记录了作者初次尝试制作个人相册的过程,包括登录和注册界面的实现。登录界面和注册界面都涉及正则表达式验证邮箱和密码规则,注册界面还增加了用户名长度限制及两次密码输入一致性检查。代码示例和效果展示也在文中给出。
摘要由CSDN通过智能技术生成

大家好,今天也是努力写博客的一天。学习了那么久,终于是迎来了学习上的一大挑战,制作一个个人相册,其中包括三个部分,一个登录界面,一个注册界面,以及一个相册界面。

1:登录界面

要求:
1. 使用正则表达式验证邮箱
2. 密码长度至少为6位且为字母与数字的组合

分析:此处的两个要求我们应用的正则表达式来解决,方法为昨天使用的方法,不懂的小伙伴请自行去看博主的上一篇的博客。这里就不再讲了。代码如下:

<style>
    #a{

        width: 1000px;
        height: 400px;
        background-image:url("m781.jpg");
        background-size:100% 100%;
        background-repeat: no-repeat; 
        background-position: center;
        position: relative; 
        border: 0px;
        /* margin: 0; */
        top: 100px;
        left: 130px; 
    }
    #b{
        background:rgba(255,255,255,0.3);
        width: 350px;
        height: 350px;
        border-radius: 175px;
        position: absolute;
        margin:auto;
        top: 20px;
        left: 325px;
        text-align:center;
        /* vertical-align: auto; */
        line-height:120px;
        animation-name: div;
        animation-duration: 1s;
        animation-iteration-count: 1;
        animation-direction: alternate;
        animation-timing-function: ease-in-out;
    }
    button{
        background-color: rgba(139, 228, 231,0.5);
        border: 1px;
            border-radius: 5px;
            width: 50px;
            height: 30px;
    }
    img{
        width: 1000px;
        height: 400px;
    }
    #username{
            border-top: none;
            border-bottom: 1px solid black;
            border-left: none;
            border-right: none;
            background:rgba(255,255,255,0);
            text-align: center;
        }
    #password{
            border-top: none;
            border-bottom: 1px solid black;
            border-left: none;
            border-right: none;
            background:rgba(255,255,255,0);
            text-align: center;
        }
    
    @keyframes div {
        0%{transform: translate(0px,0px);}
        50%{transform:rotateY(180deg)}
        100%{transform:rotateY(360deg)}
    }

</style>
<body style="margin:0px;">
    <div id="a">
    <div id="b">
        奥特名:<input type="text"
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值