当前位置:   article > 正文

简单的html练习:实现超级唯美浪漫简约的登录界面_唯美的测试html页面

唯美的测试html页面


一、实现界面

在这里插入图片描述


二、代码

1.denglu.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="land.css">
    <title>Title</title>

</head>
<body>
    <div class="login-container">
        <div class="left-container">
            <div class="title"><span>登陆</span></div>
            <div class="input-container">
            <input type="text" name="username" placeholder="用户名">
            <input type="password" name="password" placeholder="密码">
        </div>
        <div class="message-container">
            <span>忘记密码</span>
        </div>
    </div>
    <div class="right-container">
        <div class="regist-container">
            <span class="regist">注册</span>
        </div>
        <div class="action-container">
            <span>提交</span>
        </div>
    </div>
    </div>
</body>
</html>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33

二、land.css

*{
    padding:0;
    margin:0;

}
html{
    height:100%;
}
body{

    background-image: linear-gradient(to bottom right,rgb(114,135,254),rgb(130,88,186));
}
body .login-container{
    width: 600px;
    height: 315px;
    margin-left:600px;
    margin-top:10%;
    border-radius:15px;
    box-shadow:0 10px 50px 0 rgb(59,45,159);
    background-color: rgb(95,76,194);
}
body .login-container .left-container {
    display: inline-block;
    width: 330px;
    border-top-left-radius: 15px;
    border-bottom-left-radius:15px;
    padding: 60px;
    background-image: linear-gradient(to bottom right, rgb(118, 76, 163), rgb(92, 103, 211));
}
body .login-container .left-container .title{
    color:#fff;
    font-size:18px;
}
body .login-container .left-container .title .span{
    border-bottom:3px solid rgb(237,221,22);
}
body .login-container .left-container .input-container{
    padding: 20px 0;
}
body .login-container .left-container .input-container input {
    border: 0;
    background: none;
    outline: 0;
    color:#fff;
    margin:20px 0;
    display:block;
    width: 100%;
    padding:5px 0;
    border-bottom:1px solid rgb(199,191,219)
}
body .login-container .left-container .input-container input:hover{
    border-bottom-color:#fff;

}
::-webkit-input-placeholder{
    color:rgb(199,191,219)
}
body .login-container .left-container .message-container {
    font-size: 14px;
    transition: .2s;
    color: rgb(199, 191, 219);
    cursor:pointer;
}
body .login-container .left-container .message-container:hover{
    color:#fff;
}
body .login-container .right-container{
    width: 145px;
    display:inline-block;
    height: 200px;
    vertical-align:top;
    padding:60px 0;

}
body .login-container .right-container .regist-container{
    text-align:center;
    color:#fff;
    font-size:18px;
    font-weight:200;
}
body .login-container .right-container .regist-container span{
    border-bottom:3px solid/* rgb(237,221,22)*/#fff;
}
body .login-container .right-container .action-container {
    font-size: 10px;
    color: #fff;
    height: 100%;
    position:relative;
}
body .login-container .right-container .action-container span {
    border: 1px solid /*rgb(237, 221, 22)*/#fff;
    padding: 10px;
    display: inline;
    line-height: 25px;
    border-radius: 25px;
    position:absolute;
    bottom:10px;
    left: 47px;
    transition:.2s;
    cursor:pointer;
}
body .login-container .right-container .action-container span:hover {
    background-color: /*rgb(237, 221, 22)*/#fff;
    color:rgb(95,76,194)
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105

总结

超级简单的html页面赶紧动手尝试一下吧!!!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/人工智能uu/article/detail/841808
推荐阅读
相关标签
  

闽ICP备14008679号