layui布局实现一个pc端网站注册页面代码

代码语言:html

所属分类:布局界面

代码描述:layui布局实现一个pc端网站注册页面代码

代码标签: 一个 pc 网站 注册 页面

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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">

    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script>
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/js/layui/css/layui.css">
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/layui/layui.all.js"></script>
    <title>注册</title>
    <style type="text/css">
@charset "utf-8";

        /* CSS Document */

        blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,iframe,input,legend,li,ol,p,pre,td,textarea,th,ul {
            margin: 0;
            padding: 0;
            vertical-align: baseline
        }
        .clearfix:after,.clearfix:before {
            display: table;
            content: ''
        }
        .clearfix:after {
            clear: both;
            overflow: hidden
        }
        .clearfix {
            zoom: 1
        }

        iframe {
            border: 0
        }
        a,button,img,input,select {
            outline: 0 none
        }
        img {
            border: 0 none;
            vertical-align: top
        }
        em,i {
            font-style: normal
        }
        ol,ul {
            list-style: none
        }
        button,h1,h2,h3,h4,h5,h6,input,select {
            font-size: 100%;
        }
        table {
            border-collapse: collapse;
            border-spacing: 0
        }
        a {
            color: #333;
            text-decoration: none
        }
        a:hover {
            cursor: pointer
        }
        input:focus,
        textarea:focus {
            outline: 0;
            border: 1px solid #16C09C!important;
            box-shadow: 0 0 0 2px rgba(22, 192, 156, 0.2);
        }
        .fl {
            float: left;
        }
        .fr {
            float: right;
        }

        body {
            color: #333;
            background: #EFF4F5;
            font-size: 14px;
            line-height: 1.6;
            font-family: Gotham,Helvetica, "Pingfang SC", "Microsoft YaHei", STHeiti, Verdana, Arial, Tahoma, sans-serif;
        }
        .header {
            background: #16C09C;
            box-shadow: 0 0 8px 0 rgba(0, 0, 0, .2);
            z-index: 1000;
            height: 60px;
            position: absolute;
            width: 100%;
            top: 0;
            left: 0;
        }
        .header-inner {
            padding: 0 20px;
            height: 60px;
        }
        .header-inner .logo img {
            height: 40px;
        }
        .logo {
            margin-top: 10px;
        }
        .footer {
            text-align: center;
            color: #a8a8a8;
            font-size: 12px;
            padding: 20px 0;
            line-height: 30px;
        }
        .footer.fixed {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
        }
        .grid {
            width: 1200px;
            margin: 0 auto;
            height: 100%;
            position: relative;
        }


        /*register.html*/
        .rgst-content {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin: 40px auto;
            background: #fff;
            width: 800px;
            border-radius: 10px;
            overflow: hidden;
        }
        .rgst-content h2 {
            color: #16C09C;
            font-size: 24px;
            font-weight: 500;
            letter-spacing: 2px;
            border-bottom: 1px solid #f0f0f0;
            padding: 10px;
        }
        .ui-label {
            color: #4c4c4c;
            float: left;
            margin-right: 10px;
            text-align: right;
            width: 85px;
            line-height: 42px;
            font-size: 15px
        }
        .ui-label span {
            color: red;
            margin-left: 5px
        }
        .ui-input {
            font-family: Gotham,Helvetica, "Pingfang SC", "Microsoft YaHei", STHeiti, Verdana, Arial, Tahoma, sans-serif;
            height: 20px;
            line-height: 20px;
            padding: 12px 10px;
            width: 350px;
            background: #fbfbfb;
            border: 1px solid #c4cccc;
            font-size: 14px;
            transition: border .2s linear 0s,box-shadow .2s linear 0s;
            vertical-align: middle;
            border-radius: 4px;
        }
        .ui-form-item select {
            font-family: Gotham,Helvetica, "Pingfang SC", "Microsoft YaHei", STHeiti, Verdana, Arial, Tahoma, sans-serif;
            height: 20px;
            line-height: 46px;
            height: 46px;
            width: 372px;
            background: #fbfbfb;
            border: 1px solid #c4cccc;
            font-size: 14px;
            transition: border .2s linear 0s,box-shadow .2s linear 0s;
            vertical-align: middle;
            border-radius: 4px;
        }
        .error {
            display: none;
            color: #ff5b5b;
            background: url(../images/error.png) no-repeat left center;
            height: 18px;
            line-height: 18px;
            padding-left: 24px
        }
        .ui-input-correct {
            background: url(../loginimages/ui-correct.png) no-repeat right center;
            border-color: #5fb500
        }
        .ui-input-wrong {
            border-color: #ff5b5b
        }
        .ui-form-item {
            margin-top: 20px;
            position: relative
        }
        .ui-form-item .error {
            margin-left: 95px;
            margin-top: 5px
        }
        .btn {
            -moz-user-select: none;
            background-image: none;
            border: 1px solid transparent;
            border-radius: 4px;
            cursor: pointer;
            display: inline-block;
            font-size: 14px;
            font-weight: 400;
            line-height: 1.42857;
            margin-bottom: 0;
            padding: 11px 12px;
            text-align: center;
            touch-action: manipulation;
            vertical-align: middle;
            white-space: nowrap
        }
        .btn-default {
            background-color: #fff;
            border-color: #ccc;
            color: #333
        }
        .btn-primary {
            background-color: #2398ea;
            border-color: #2289e0;
            color: #fff
        }
        .btn-primary:hover {
            background-color: #2289e0;
            border-color: #2289e0;
            color: #fff
        }
        .btn-primary-new {
            background-color: #5fb500;
            border-color: #529a03;
            color: #fff
        }
        .btn-primary-new:hover {
            background-color: #529a03;
            border-color: #529a03;
            color: #fff
        }
        .ui-form-item .btn {
            width: 358px;
            display: block;
            margin-left: 95px;
            color: #fff;
            font-size: 16px;
        }
        .rgst-content .ui-form-item .btn {
            box-shadow: 0 6px 15px rgba(29, 182, 94, 0.4);
        }
        /*login.html*/
        .banner {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            backgrou.........完整代码请登录后点击上方下载按钮下载查看

网友评论0