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/[email protected]')  
                }
                .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/[email protected]);
                    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/[email protected]);
                    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/[email protected]);
                    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/[email protected]"/>
            </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>

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

猜你喜欢

转载自www.cnblogs.com/shuangzikun/p/taotao_html_login.html