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. js配置文件路径和项目目录文件夹位置的一致性

    在js文件引入的时候注意配置文件的路径是否和项目目录中的文件夹位置一致,如果不一致, 浏览器会指出找不到文件404的情况

  2. Convert.ChangeType不能处理Nullable类型的解决办法(转)

    https://www.cnblogs.com/patrickyu/p/3211115.html 在做一个ORMapping功能的时候发现,Convert.ChangeType不能处理nullable ...

  3. C# Json 和对象的相互转换

    Json 和对象的相互转换 /// <summary> /// Json 和对象的相互转换 ——需引用using Newtonsoft.Json; 即:Jsonnet.net..... / ...

  4. React 生命周期及使用场景

    对比版本:16.4.0 VS 16.3.0 VS 16.2.0 发现最近几次React版本更改比较大,在为17.0的大版本作准备.总结了一下React生命周期函数的变化. 综合对比图如下: 各版本分别 ...

  5. MFC 解决中文乱码问题

    新的编译工具默认的是unicode编码方式,许多在多字节下面显示中文的方法已经不再适用了按照道理说设置为unicode编码后应该会很好的支持中文, 但是实际情况很悲惨,显示的都是乱码. 看到网上的很多 ...

  6. canvas一些属性

    lineTo(x,y) 定义线条结束坐标 moveTo(x,y) 定义线条开始坐标 ctx.stroke();绘制空心图形 ctx.fill();填充图形 把当前路径环绕起来的区域进行填充 ctx.f ...

  7. hex转mif文件 verilog

    用FPGA来跑ARM 核的时候,刚开始将Keil编译产生的hex文件拿来仿真和下到板子上的时候,发现程序运行不正确.细细观察仿真波形发现,在Altera的ROM IP中直接调用Keil产生的hex文件 ...

  8. 01-JDK环境配置

    环境说明: Window server 2008 64位 jdk-7u80-windows-x64 apache-tomcat-7.0.57-windows-x64 1.安装JDK环境配置 JAVA_ ...

  9. Validation.Add();Excel

    Irange = (Microsoft.Office.Interop.Excel.Range)worksheet.get_Range("I1", "I1").g ...

  10. kubernetes学习笔记之十四:helm入门

    1.Helm的简介 Helm是Kubernetes的一个包管理工具,用来简化Kubernetes应用的部署和管理.可以把Helm比作CentOS的yum工具. Helm有如下几个基本概念: Chart ...