前端:注册页面

效果

代码

index.html

html 复制代码
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/index.css">
    <title>Document</title>
</head>

<body>
    <div class="container">
        <div class="wrapper">
            <div class="reg_header">
                <span>内部员工注册</span>
            </div>
            <div class="reg_content">
                <form action="" class="reg_form">
                    <div class="form_item">
                        <div class="form_left">
                            <span> <text class="span_text">*</text>内部员工注册</span>
                            <input type="text" placeholder="请输出法人代表姓名" />
                        </div>
                        <div class="form_right">
                            <span>法人证件号码</span>
                            <input type="text" placeholder="请输出法人证件号码" />
                        </div>
                    </div>
                    <div class="form_item">
                        <div class="form_left">
                            <span> <text class="span_text">*</text>法人代表姓名</span>
                            <input type="text" placeholder="请输出法人代表姓名" />
                        </div>
                        <div class="form_right">
                            <span>法人证件号码</span>
                            <input type="text" placeholder="请输出法人证件号码" />
                        </div>
                    </div>
                    <div class="form_item">
                        <div class="form_left">
                            <span> <text class="span_text">*</text>法人代表姓名</span>
                            <input type="text" placeholder="请输出法人代表姓名" />
                        </div>
                        <div class="form_right">
                            <span>法人证件号码</span>
                            <input type="text" placeholder="请输出法人证件号码" />
                        </div>
                    </div>
                    <div class="form_item">
                        <div class="form_left">
                            <span> <text class="span_text">*</text>法人代表姓名</span>
                            <input type="text" placeholder="请输出法人代表姓名" />
                        </div>
                        <div class="form_right">
                            <span>法人证件号码</span>
                            <input type="text" placeholder="请输出法人证件号码" />
                        </div>
                    </div>
                    <div class="form_item">
                        <div class="form_left">
                            <span> <text class="span_text">*</text>法人代表姓名</span>
                            <input type="text" placeholder="请输出法人代表姓名" />
                        </div>
                        <div class="form_right">
                            <span>法人证件号码</span>
                            <input type="text" placeholder="请输出法人证件号码" />
                        </div>
                    </div>
                    <div class="all_btn">
                        <div class="btn_position">
                            <input class="btn" type="submit" value="注册" name="SubmitUser" />
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>

</html>

index.css

css 复制代码
* {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    height: 100%;
    background-color: #3079be
}

/* 总体 */
.container {
    height: 100%;
    background-color: #3079be;
}

/* 核心 */
.wrapper {
    background: rgba(255, 255, 255);
    width: 90%;
    height: 80%;
    border-radius: 15px;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 5px 5px 6px rgba(0, 0, 0, 0.5);
}

/* 头部标题 */
.reg_header {
    color: #3079be;
    font-size: 120%;
    font-weight: bold;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.reg_header span {
    width: 98%;
    padding: 1% 0;
    border-bottom: 1px solid #dfdfdf;
}

.reg_content {
    margin-top: 1%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reg_form {
    width: 90%;
}

.form_item {
    width: 100%;
    display: flex;
    margin: 3% 0
}

.form_left {
    width: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.form_right {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.form_left span,
.form_right span {
    padding-right: 2%;
}

span text {
    color: red;
}

.form_left input,
.form_right input {
    width: 70%;
    border: 1px solid #cecece;
    padding: 1%;
    border-radius: 5px;
}

/* 按钮 */
.all_btn {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 5%;
}

.btn_position {
    width: 15%;
}

.btn {
    text-align: center;
    height: 30px;
    width: 100%;
    background-color: #3079be;
    color: #fff;
    border: none;
}
相关推荐
郑州光合科技余经理1 小时前
海外O2O系统源码剖析:多语言、多货币架构设计与二次开发实践
java·开发语言·前端·小程序·系统架构·uni-app·php
arvin_xiaoting6 小时前
OpenClaw学习总结_I_核心架构_8:SessionPruning详解
前端·chrome·学习·系统架构·ai agent·openclaw·sessionpruning
工程师老罗8 小时前
Image(图像)的用法
java·前端·javascript
swipe9 小时前
把 JavaScript 原型讲透:从 `[[Prototype]]`、`prototype` 到 `constructor` 的完整心智模型
前端·javascript·面试
问道飞鱼9 小时前
【前端知识】React 组件生命周期:从底层原理到实践场景
前端·react.js·前端框架·生命周期
CHU7290359 小时前
定制专属美丽时刻:美容预约商城小程序的贴心设计
前端·小程序
浩~~10 小时前
反射型XSS注入
前端·xss
AwesomeDevin10 小时前
AI时代,我们的任务不应沉溺于与 AI 聊天,🤔 从“对话式编程”迈向“数字软件工厂”
前端·后端·架构
harrain10 小时前
antvG2折线图和区间range标记同时绘制
前端·javascript·vue.js·antv·g2
德育处主任Pro10 小时前
从重复搭建到高效生产,RollCode的H5开发新范式
前端