bootstrap布局实现手机端移动端蓝色风格登录注册表单效果代码

代码语言:html

所属分类:布局界面

代码描述:bootstrap布局实现手机端移动端蓝色风格登录注册表单效果代码

代码标签: 手机 移动 蓝色 风格 登录 注册 表单 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="zh-CN" style="background: #fff;">
<head>
    <meta charset="utf-8">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
    <script type="text/javascript">

        !(function (doc, win) {
            var el = doc.documentElement;
            //resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize';

            function setSize() {
                var w = el.clientWidth;
                if (!w) return;
                w = w > 480?480: w;
                w = w < 320?320: w;
                el.style.fontSize = (100 * (w / 1080)).toFixed(3) + 'px';
            }
            if (!doc.addEventListener) return;
            setSize();
            win.addEventListener('resize', setSize, false);
            win.addEventListener('pageshow', function(e) {
                if (e.persisted) {
                    setSize();
                }
            },
                false);
        })(document, window);


    </script>

    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.3.3.4.css">
    <style>


        * {
            margin: 0;
            padding: 0;
        }
        html,body {
            width: 100%;
        }
        body {
            overflow: -Scroll;
            overflow-x: hidden;
        }
        body {
            font-family: "微软雅黑";
        }

        /*移动端*/

        html {
            font-family: sans-serif;
            /* 1 */
            -ms-text-size-adjust: 100%;
            /* 2 */
            -webkit-text-size-adjust: 100%;
            /* 2 */
        }
        header {
            display: block;
        }
        a {
            background-color: transparent;
        }
        a:active,a:hover {
            outline: 0;
        }
        img {
            border: 0;
        }

        button,
        input {
            color: inherit;
            /* 1 */
            font: inherit;
            /* 2 */
            margin: 0;
            /* 3 */
        }
        button {
            overflow: visible;
        }
        button {
            text-transform: none;
        }
        button {
            -webkit-appearance: button;
            /* 2 */
            cursor: pointer;
            /* 3 */
        }
        button::-moz-focus-inner,input::-moz-focus-inner {
            border: 0;
            padding: 0;
        }
        input {
            line-height: normal;
        }
        input[type="checkbox"] {
            box-sizing: border-box;
            /* 1 */
            padding: 0;
            /* 2 */
        }
        img {
            border: 0
        }
        ul {
            list-style: none;
        }

        input,button {
            font-family: "microsoft yahei";
        }
        a {
            text-decoration: none;
            outline: none;
        }
        a:hover {
            outline: none;
        }
        input[type="text"] {
            -webkit-appearance: none;
            border-radius: 0;
        }
        input {
            -webkit-tap-highlight-color: rgba(255,0,0,0);
        }
        a,button {
            -webkit-appearance: none;
            -webkit-tap-highlight-color: rgba(255,0,0,0);
        }

        /* 1.去除android a/button/input标签被点击时产生的边框 2.去除ios a标签被点击时产生的半透明灰色背景 */

        /*解决firefox按钮文字难以垂直居中问题*/
        input,button,form {
            /* margin:0; *//* padding:0; *//* border-width:1px; *//* outline:none; */-moz-box-sizing: content-box;
            -webkit-box-sizing: content-box;
            -o-box-sizing: content-box;
            -ms-box-sizing: content-box;
            /* box-sizing: content-box; */
        }
        .clearfloat:after {
            display: block;
            clear: both;
            content: "";
            visibility: hidden;
            height: 0
        }
        .clearfloat {
            zoom: 1
        }

        .box-s {
            box-sizing: border-box;
            -webkit-box-sizing: border-box;
        }


        .tab-account {
            padding: 0.4rem;
            background-color: #fff;
        }
        .tab-account .nav-tabs {
            padding: 0 0.4rem;
            border-bottom: none !important;
        }
        .tab-account .nav-tabs li {
            width: 35%;
            text-align: center;
        }
        .nav-tabs>li>a {
            color: #000;
            font-size: 0.45rem;
        }
        .tab-account .nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover {
            color: #4C82FF;
            border-color: transparent;
            border-bottom: 2px solid #4C82FF !important;
            background-color: transparent;
        }
        .tab-account .tab-content {
            margin-top: 10px;
        }
        .form-group {
            margin-bottom: 0;
        }


        .inpt-form {
            width: 92% !important;
            height: 37px !important;
            line-height: 37px !important;
            border-radius: 4px !important;
            border: 1px solid #dcdfe6 !important;
            box-shadow: none !important;
            font-size: 0.36rem;
            color: #666;
        }
        .form-control:focus, .form-control:active, .form-control:hover {
            border-color: #1890ff !important;
            box-shadow: none;
        }
        .conf-btn {
            width: 90%;
            padding: 10px 20px !important;
            border-radius: 50px !important;
            border: none;
            background: #4c82ff !important;
            color: #fff;
            font-size: 0.48rem;
        }


        .tab-account .login-tabs {
            padding: 0 2rem !important;
        }
        .tab-account .login-tabs li {
            width: 50%;
            text-align: center;
        }

        .login-top {
            width: 100%;
            height: 6.8rem;
        }
        .login-top .ge-back img {
            width: 100%;
            height: 6.4rem;
            display: block;
            margin: 0 auto;
        }
        .logo-imgs {
            position: relative;
            left: 36%;
            top: -27%;
            width: 3rem;
            height: 3rem;
            text-align: center;
            background: #fff;
            border-radius: 16px;
            -moz-box-shadow: 2px 2px 5px  rgba(76, 130, 255, .4);
            -webkit-box-shadow: 2px 2px 5px  rgba(76, 130, 255, .4);
            box-shadow: 2px 2px 5px  rgba(76, 130, 255, .4);

        }
        .logo-imgs img {
            width: 2.2rem;
            height: 2.2rem;
            margin: 0.4rem 0;
        }
        .login-group_re {
            position: relative;
        }
        .login-group_re i {
            position: absolute;
            line-height: 37px;
            color: #4C82FF;
            font-size: 0.5rem;
            background: #fff;
            z-index: 999999;
        }


        .login-group_re .inpt-form {
            display: block;
            width: 88% !important;
            padding-left: 0.8rem;
            border: none !important;
            border-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0