• react实现登陆页面


    源码:

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <script src="https://cdn.staticfile.org/react/16.4.0/umd/react.development.js"></script>
            <script src="https://cdn.staticfile.org/react-dom/16.4.0/umd/react-dom.development.js"></script>
            <script src="https://cdn.staticfile.org/babel-standalone/6.26.0/babel.min.js"></script>
            <title></title>
        </head>
        
        <style type="text/css">
            body{
                margin: 0;
                padding: 0;
                
            }
                
            .father{
                 700px;
                height: 900px;
                text-align:center;
                margin: 0 auto;
                background-color: #F5F5F5;
            }
            .img{
                 100%;
                height: 500px;
                
            }
            .img img{
                 100%;
                height: 500px;
                position: relative;
                z-index: 0;
            }
            .box{
                 450px;
                height: 300px;
                background-color: #fff;
                margin:-160px auto;
                display: -webkit-flex;
                -webkit-flex-direction: column;
                flex-direction: column;
                position: relative;
                z-index: 1;
            }
            .top{
                background-color: #2EB3FF;
                height: 45px;
                color: #FFFFFF;
                text-align: left;
                padding-left: 20px;
                line-height: 250%;
            }
            .top_next{
                 100%;
                height: 40px;
            }
             .input1 input{
              background-image:transparent; 
                border:0;       
                margin-left: -105px;
               }
        .input2 input{
            border:none;
            margin-left: -105px;
            
        }
        
            .middle_top,.middle_next{
                 300px;
                height: 40px;
                border-bottom: #CCCCCC 1.5px solid;
                margin: 5px auto;
                
            }
            .middle_next{
                margin-bottom: 80px;
            }
            .middle_top img{
                25px;
                height: 25px;
                margin: 1px;
            }
            
            .middle_next img{
                 30px;
                height: 30px;
                
                
            }
            .icon_1,.icon_2{
                float: left;
            }
            .bottom{
                 100%;
                height: 60px;
                color: #fff;
                text-align: center;
                line-height: 37px;
                background-color: #ccc;
                margin: auto;
            }
            .yanzheng button{
                 110px;
                height: 30px;
                border: 1.5px solid #64CAFF;
                border-radius: 10px;
                color: #64CAFF;
                float: right;
                line-height: -15px;
                background-color:transparent ;
                margin: -22px;
                margin-right: -4px;
            }
        </style>
        <body>
            <div class="father">
                <div class="img">
                    <img src="../imgs/bg-login.png" >
                </div>
                <div class="box">
                    <div class="top">
                        86君账号验证码登录
                    </div>
                    <div class="top_next">
                        请登录您的86君账号预定会议室
                    </div>
                    <div class="middle_top">
                        <div class="icon_1">
                            <img src="../imgs/icon-login-username.png" >
                        </div>
                        <div class="input1">
                            <input  type="text"   placeholder="请输入手机号" onfocus="javascript:if(this.value=='请输入手机号') this.value='';">
                        </div>              
                    </div>
                    <div class="middle_next">
                        <div class="icon_2">
                            <img src="../imgs/icon-login-validate.png" >
                        </div>
                        <div class="input2">
                            <input   type="text"    placeholder="请输入验证码"  onfocus="javascript:if(this.value=='请输入验证码') this.value='';"  >
                            
                        </div>
                        <div class="yanzheng">
                            <button>获取验证码</button>
                        </div>
                        
                    </div>
                    <div class="bottom">
                        登录
                    </div>
                </div>
                
            </div>
            
        </body>
    </html>
     
     
    效果图:
  • 相关阅读:
    win7 64位操作系统下使用OFFICE2007 导入表格报错 未在本地计算机上注册 Microsoft.ACE.OLEDB.12.0
    armxilinxeabigcc 不是内部或外部命令,也不是可运行的程序
    上位机 串口 通信 协议
    ZYNQ 调试遇到的种种问题汇总[转帖]
    ZedBoard 安装 Ubuntu11.04
    What the difference between .ipa and .app
    How to create a .ipa file for ios app?
    获取IOS客户端系统版本号
    ios软件支持双语(本地化、国际化)
    objectivec中判断对象是否属于某个类的方法
  • 原文地址:https://www.cnblogs.com/maleijiejie/p/13490825.html
Copyright © 2020-2023  润新知