html

body>
    <form action="#" method="get">
        <div>
            <label for="yonghu">用户名<span> * </span></label>
            <input type="text" placeholder="" name="username" id="yonghu" required>
            <span>请使用邮箱的电子邮箱</span>
        </div>
        <div>
            <label for="mima">密码<span> * </span></label>
            <input type="password" placeholder="" name="pwd" id="mima" required>
            <span class="qiangdu">密码强度:
                <span>弱</span>
                <span>中</span>
                <span>强</span>
            </span>
        </div>
        <div>
            <label for="queren">确认密码<span> * </span></label>
            <input type="password" name="pwd" id="queren" required>
        </div>
        <div>
            <label for="mubiao">注册目标<span> * </span></label>
            <input type="radio" name="xiangmu" value="huiyuan" required checked> 会员 <span>(快速卖出或买进农产品)</span>
            <div>
                <input type="radio" name="xiangmu" value="nongyejingjiren"
                    required> 农业经纪人 <span>(为广大会员服务,促成农产品交易)</span>
            </div>
            <div>
                <input type="radio" name="xiangmu" value="qudaolianmeng" required> 渠道联盟 <span>(成为我们的合作伙伴)</span>
            </div>
            <div>
                <input type="radio" name="xiangmu" value="xinxiyuan" required> 信息员 <span>(采集发布热点农业信息)</span>
            </div>
            <div>备注:Lorem ipsum dolor si Consectetur, dolorum.</div>
        </div>
        <div>
            <label for="xingming">姓名<span> * </span></label>
            <input type="text" placeholder="" name="myname" id="xingming" required>
            <span>真实姓名(与身份证信息一致)</span>
        </div>
        <div>
            <label for="shouji">手机<span> * </span></label>
            <input type="text" placeholder="" name="mobile" maxlength="11" id="shouji" required>
            <span>真实姓名(与身份证信息一致)</span>
        </div>
        <div>
            所在区域<span> * </span>
            <select name="area" id="area" required>
                <option value="guojia">中国</option>
                <option value="tajike">塔吉克斯坦</option>
            </select>
            <select name="area1" id="area1" required>
                <option value="diqu">---地区---</option>
                <option value="meiguo">---美国---</option>
            </select>
            <span>选择所在的省/市</span>
        </div>
        <div>
            <label for="yanzhengma">验证码<span> *  </span></label>
            <input type="text" placeholder="" name="yanzheng" id="yanzhengma" required>
            <a href="#">看不清,换一张</a>
        </div>
        <div class="yidong">
            <button class="tijiao">同意以下条款并注册</button>
            <a href="#">登入</a><a href="#">找回密码</a>
        </div>
        <textarea name="" id="" cols="50" rows="5"></textarea>
    </form>
</body>
</html>
css
form {
    width: 800px;
    margin: auto;
}
form>div {
    margin: 10px 0;
}
label {
    font-size: 16px;
    font-weight: bold;
}
form>div>label {
    display: inline-block;
    width: 100px;
    text-align: right;
}
label>span:first-child {
    color: red;
}
div>span:last-of-type {
    font-size: 12px;
    color: cadetblue;
}
a {
    display: inline-block;
    text-decoration: none;
    margin: 0 10px;
}
form>div:nth-child(4)>div {
    margin-left: 104px;
}
form>div:nth-child(4)>div>span {
    display: inline-block;
    width: 300px;
    text-align: left;
}
.qiangdu>span {
    display: inline-block;   
    color: red;
    padding: 0 5px;
}
.qiangdu>span:nth-child(2) {
    color: black;
}
.qiangdu>span:last-child {
    color: green;
}
form>div:nth-child(7){
    margin-left:25px;
    font-size: 16px;
    font-weight: bold;
   
}
form>div:nth-child(7)>span:first-child{
   color: red;
  
}
.tijiao{
    display: inline-block;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    background-image: linear-gradient(orange);
}
.yidong{
    margin-left: 100px;
   
}
 
 

html注册栏网页练习代码的更多相关文章

  1. 用javascript实现禁止页面后退返回上一页的代码

    用javascript实现禁止页面后退返回上一页的代码:  有时候我们需要用户在点击了如下一步的按钮时,页面跳转到了下一个页面,这时想不允许用户返回后退到上一页,可以采用下面的方法:  在需要跳转的页 ...

  2. JSP注册登录页教程

    转载请标明原文地址:http://www.cnblogs.com/zhangyukof/p/6785258.html  一.准备工作 已搭建好的SSH框架工程一个,如果没有,请参考我的上一篇文章< ...

  3. Git、TortoiseGit中文安装教程,如何注册Gitee账号进行代码提交,上传代码后主页贡献度没显示绿点(详解)

    今天给大家分享的是 Git 软件和 TortoiseGit 图形化软件的详细安装教程以及如何在 gitee 上进行代码提交. 首先我也是个刚接触 gitee 的一个小白用户,这些都是自己一边学一边记录 ...

  4. Dubbo Multicast 注册中心即相关代码实现

    Dubbo 的 Multicast注册中心有下面特点: 不需要启动任何中心节点,只要广播地址一样,就可以互相发现 组播受网络结构限制,只适合小规模应用或开发阶段使用. 组播地址段: 224.0.0.0 ...

  5. MVC视图布局页常用代码

    1.在视图 Views 中新建文件夹  Shared 2.在 Shared 中新建布局页-母版页   _Layout.cshtml @{ Layout = null; } <!DOCTYPE h ...

  6. 使用事件注册器进行swoole代码封装

    在使用swoole的时候,事件回调很难维护与编写,写起来很乱.特别在封装一些代码的时候,使用这种注册,先注册用户自己定义的,然后注册些默认的事件函数. Server.php class Server ...

  7. PHP注册手机获取验证码代码

    php代码: <?php require dirname(__FILE__).'/include/common.inc.php';//这是在cms2008下面做的测试 header(" ...

  8. zf-分页后台代码

    java : public ResultPage getDeptList(int page, int pageRows) throws Exception { String hql="fro ...

  9. 132页Filter代码分析

    1.long before = System.currentTimeMillis(); long after = System.currrentTimeMillis(); 解析:这两段代码之间定义的是 ...

随机推荐

  1. DDS生成正弦波

    DDS生成正弦波 `timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////// ...

  2. 记录一次mongodb因网络问题导致shard节点异常

    现象: 机房反馈9点左右,机房交换机故障,导致网络出现问题 业务人员反馈某个接口超时 初查:通过业务日志查看分析发现,在连接mongo的某个collections时候,报错错误如下: 在写入数据的时候 ...

  3. Spring3基础原理解析

    一.Spring3主要含义 Spring3是一个轻量级的控制反转(IOC)和面向切面(AOP)的容器框架. 注:IOC的作用:对象依赖的其他对象通过被动的形式传递进来而不是这个对象常见或者查找依赖对象 ...

  4. obtainFreshBeanFactory()源码探究

    该方法目的是获取bean工厂.主要逻辑是:刷新bean工厂,获取bean工厂,进而返回bean工厂,但实际上并没有刷新bean工厂,基本上为空实现.源码如下: 而刷新bean工厂,正如注释所说,do ...

  5. python3学习笔记十(循环语句)

    参考http://www.runoob.com/python3/python3-loop.html 循环语句 while循环 # !/usr/bin/env python3 n = 100 sum = ...

  6. 未来-区块链-Aliyun:阿里云IoT - 所知不止于感知

    ylbtech-未来-区块链-Aliyun:阿里云IoT - 所知不止于感知 1.返回顶部 1. 基础产品接入 设备接入 设备管理 数据分析 应用开发 网络管理 边缘计算 设备认证 安全运营 AliO ...

  7. 学习笔记《Java多线程编程实战指南》一

    1.1什么是多线程编程 多线程编程就是以线程为基本抽象单位的一种编程范式,和面向对象编程是可以相容的,事实上Java平台中的一个线程就是一个对象.多线程编程不是线程越多越好,就像“和尚挑水”的故事一样 ...

  8. js无间隙向上滚动

    一.优点:div可以load:缺点:滚动的时候有点娘,磨磨唧唧,不够干脆爽快 html <div id="my_msg" class="my-msg bg-whit ...

  9. [转]Deciding on a Project Coding Mask

    https://blogs.sap.com/2015/11/26/deciding-on-a-project-coding-mask/ SAP里面每个模块都有其number range的定义和分派逻辑 ...

  10. ring0与ring3通信方式

    修改自: https://blog.csdn.net/wzsy/article/details/54929726 控制码方式详解: https://www.cnblogs.com/lsh123/p/7 ...