• h5登录页面


    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
            <title>影像登录</title>
            <style>
                    body{
                    background: url('image/bg@2x.png')  
                    }
                    .logo{
                        width:100px;
                        margin: 107px auto 101px auto;
                    }
                    .carName{
                        width: 80%;
                        height: 40px;
                        margin: 0 auto;
                        position: relative;
                        background-color: #4ea7ce;
                        border-radius: 4px;
                        opacity: 0.8;
                    }
                    .carPassword{
                        width: 80%;
                        height: 40px;
                        margin: 20px auto;
                        position: relative;
                        background-color: #4ea7ce;
                        border-radius: 4px;
                        opacity: 0.8;
                    }
                    .code{
                        width: 80%;
                        height: 40px;
                        margin: 20px auto;
                        position: relative;
                    }
    
                    .carName input{
                        width:70%;
                        height: 38px;
                        background:none;
                        border: none;
                        color:#ffffff;
                    }
                    .carPassword input{
                        width:70%;
                        height: 38px;
                        background:none;
                        border: none;
                        color:#ffffff;
                    }
                    .code input{
                        width:60%;
                        height: 38px;
                        background:none;
                        border: none;
                        color:#ffffff;
                    }
                    .icon-yonghuming{
                        width:6%;
                        height:20px;
                        background-image: url(image/user@2x.png);
                        background-position: center center;
                        background-repeat: no-repeat;
                        background-size: 20px 20px;
                        z-index: 200000;
                        display: block;
                        float: left;
                        margin: 10px 20px;
    
                    }
                    .icon-mima{
                        width:6%;
                        height:20px;
                        background-image: url(image/pwd.png@2x.png);
                        background-position: center center;
                        background-repeat: no-repeat;
                        background-size: 20px 20px;
                        z-index: 200000;
                        display: block;
                        float: left;
                        margin: 10px 20px;
                    }
                    .icon-code{
                        width:10%;
                        max-width: 17px;
                        height:20px;
                        background-image: url(image/safe@2x.png);
                        background-position: center center;
                        background-repeat: no-repeat;
                        background-size: 20px 20px;
                        z-index: 200000;
                        display: block;
                        float: left;
                        margin: 10px 20px; 
                    }
                    .code img{
                        width:44%;
                    }
                    /* 修改placeholder颜色 */
                    ::-webkit-input-placeholder { /* WebKit browsers */
                        color:#ffffff;
                    }
                    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
                        color:#ffffff;
                    }
                    ::-moz-placeholder { /* Mozilla Firefox 19+ */
                        color:#ffffff;
                    }
                    :-ms-input-placeholder { /* Internet Explorer 10+ */
                        color:#ffffff;
                    }
                    .submit{
                        width:80%;
                        height: 40px;
                        margin: 60px auto;
                        background-color: #ffffff;
                        border-radius: 4px;
                    }
                    .submit input{
                        width:100%;
                        background: none;
                        border:none;
                        height: 38px;
                        color: #2c97c5;
                        font-weight: bold;
                    }
                    .ionic_code{
                        width:70%;
                        float: left;
                        height: 40px;
                        background-color: #4ea7ce;
                        opacity: 0.8;
                    }
                    .codeImg{
                        float: left;
                        width: 30%;
                        height: 40px;
                        background-color: #b2ddf0;
                        text-align: center;
                        line-height: 40px;
                    } 
            </style>
        </head>
    
        <body>
            <div class="login">
                <div class="logo">
                    <img width="100" src="image/logo@2x.png"/>
                </div>
                <form id="loginForm" action="" class="">
                    <div class="carName">
                        <i class="iconfont icon-yonghuming"></i>
                        <input id="username" type="text" class="usernames" placeholder="请输入用户名">
                    </div>
                    <div class="carPassword">
                        <span class="ionic_pass">
                            <i class="iconfont icon-mima"></i>
                            <input id="password" type="password" class="passwords" placeholder="请输入密码">
                        </span>
                    </div>
                    <div class="code">
                        <div class="ionic_code">
                            <i class="iconfont icon-code"></i>
                            <input id="password"  class="passwords" placeholder="请输入验证码">
                        </div>
                        <div class="codeImg">
                            <!-- <img src=""/> -->
                            1234
                        </div>
                    </div>
                    <div style="clear: both;"></div>
                    <div class="submit">
                        <input id="submit" type="button" value="登 录" />
                    </div>
                </form>
            </div>
        </body>
    </html>

    一个简单的登录页面,如图。

  • 相关阅读:
    Swift
    Swift
    Swift
    Swift
    iOS 判断某一日期是否在一日期区间
    iOS 本地推送通知
    iOS json解析中包含“ ”等解析出错
    iOS UILabel两侧加阴影
    IOS 设置ios中DatePicker的日期为中文格式
    [分享] 关于App Store下载到一半发生错误的问题 [复制链接]
  • 原文地址:https://www.cnblogs.com/shuangzikun/p/taotao_html_login.html
Copyright © 2020-2023  润新知