HTML+CSS实现这个登录界面

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HTML+CSS实现这个登录界面相关的知识,希望对你有一定的参考价值。

如题,看图!要求CSS+html

参考技术A 首先,只通过HTML和CSS实现该功能是不现实的。既然是登陆操作,就得有校验吧,这个至少需要javascript相关代码实现。而且,真正的网页登陆操作都是与后台交互实现的,需要将数据提交到后台校验。、;
其次,没有激励,如何回答?毕竟这不是几分钟就可以搞定的事吧?
当然,若你只是实现页面呈现效果,而不需要实现登陆功能的话,就简单些了,还真的就只需要HTML和css就能实现

HTML+CSS实现用户注册登录界面

理想实现效果:

1.注册界面的实现

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册界面</title>
    <link rel="stylesheet" href="RESETCSS.css">
    <style>
        div{
            width: 300px;
            height: 350px;
            border: 1px solid grey;
            margin: 8px 0 0 8px;
        }
        span{
            border-bottom: 3px solid purple;
            padding-bottom: 3px;

        }
        a{
            text-decoration: none;
            float: right;
            padding-top: 3px;
            color: deepskyblue;
        }
        .first{
            width: 290px;
            height: 30px;
            border: 1px solid grey;
            border-radius: 5px;
            margin: 5px 4px;
        }
        .second{
            width: 200px;
            height: 30px;
            border: 1px solid grey;
            border-radius: 5px;
            margin: 5px 4px;
        }
        .third{
            width: 79px;
            height: 30px;
            border: 1px solid blue;
            border-radius: 5px;
            color: blue;
        }
        .fourth{
            width: 79px;
            height: 30px;
            border: 1px solid blue;
            border-radius: 5px;
            vertical-align: middle;
            background-image: url("https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1378353400,959510337&fm=26&gp=0.jpg");
            background-size: 79px 30px;
        }
        .zc{
            width: 290px;
            height: 30px;
            border: 1px solid grey;
            border-radius: 5px;
            margin: 5px 4px;
            background-color: skyblue;
            color: white;
        }
    </style>
</head>
<body>

<div>
    <form action="">
        <span>请注册</span>
        <a href="">立即登录&lt;</a>
        <hr>
        <input type="text" class="first" placeholder="请输入手机号"><br>
        <input type="text" class="second" placeholder="请输入短信验证码">
        <input type="button" class="third" value="发送验证码"><br>
        <input type="text" class="first" placeholder="请输入用户名"><br>
        <input type="password" class="first" placeholder="请输入密码"><br>
        <input type="password" class="first" placeholder="请再次输入密码"><br>
        <input type="text" class="second" placeholder="请输入图形验证码">
        <input type="button" class="fourth"><br>
        <input type="submit" class="zc" value="立即注册"><br>
    </form>
</div>

</body>
</html>

效果如下:

2.登录界面的实现

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <style>
        div{
            width: 200px;
            height: 180px;
            border: 1px solid grey;
            padding: 8px 8px;
        }
        .reg{
            border-bottom: 3px solid purple;
            padding-bottom: 6px;
        }
        a{
            float: right;
            text-decoration: none;
            color: skyblue;
        }
        .first{
            width: 200px;
            height: 25px;
            border: 1px solid grey;
            border-radius: 2px;
            margin: 5px 0;
        }
        .second{
            font-size: 9px;
            position: relative;
            bottom: 4px;

        }
        .pwd{
            float: right;
            font-size: 10px;
            margin: 3px;
        }
        .reg2{
            width: 200px;
            height: 25px;
            border: 1px solid grey;
            border-radius: 2px;
            margin: 5px 0;
            background-color: skyblue;
            color: white;
        }
    </style>
</head>
<body>

<div>
    <form action="">
        <span class="reg">请登录</span>
        <a href="">立即注册&lt;</a>
        <hr>
        <input type="text" class="first" placeholder="请输入手机号"><br>
        <input type="password" class="first" placeholder="请输入密码"><br>
        <input type="checkbox"><span class="second">七天内自动登录</span>
        <a href="" class="pwd">忘记密码?</a><br>
        <input type="submit" class="reg2" value="登录">
    </form>
</div>

</body>
</html>

实现效果如下:

👇🏻可通过点击下面——>关注本人运营 公众号👇🏻

公众号后台回复【手动实现登录注册页面】,可得本文源码哦~
【可以公众号里私聊并标明来自CSDN,会拉你进入技术交流群(群内涉及各个领域大佬级人物,任何问题都可讨论~)--->互相学习&&共同进步(非诚勿扰)】

以上是关于HTML+CSS实现这个登录界面的主要内容,如果未能解决你的问题,请参考以下文章

HTML+CSS实现用户注册登录界面

使用html+css3实现QQ登录界面渐变色效果

如何用html5+ css div制作一个简单的登录界面

记录--css水滴登录界面

用css,html怎么实现百度的跳转登陆界面

JS+CSS实现静态登录界面