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. CentOS下Redis的安装(转)

    目录 CentOS下Redis的安装 前言 下载安装包 解压安装包并安装 启动和停止Redis 启动Redis 停止Redis 参考资料 CentOS下Redis的安装 前言 安装Redis需要知道自 ...

  2. 程序员装X指南

      一.准备工作“工欲善其事必先利其器.” 1.电脑不一定要配置高,但是双屏是必须的,越大越好,能一个横屏一个竖屏更好.一个用来查资料,一个用来写代码 .总之要显得信息量很大,效率很高. 2.椅子不一 ...

  3. FIRMWARE BUG – THE BIOS HAS CORRUPTED HW-PMU RESOURCES

    If you’re trying to install CentOS 7 on HP server and you receive the error from the caption, don’t ...

  4. python基础知识15---三元表达式、列表推导式、生成器表达式、递归、匿名函数、内置函数

    阅读目录 一 三元表达式.列表推导式.生成器表达式 二 递归与二分法 三 匿名函数 四 内置函数 五 阶段性练习 一. 三元表达式.列表推导式.生成器表达式 1 三元表达式 name=input('姓 ...

  5. JSP和Struts2、Hibernate、Spring3基础内容和原理

    一.JSP工作原理 1.首先是利用客户端浏览器,然后由客户端浏览器请求JSP页面,向JSP服务器发出请求. 2.JSP服务器内部原理 JSP服务器首先在收到客户端传送过来的请求后,将JSP页面编译成S ...

  6. ES - Index Templates 全局index模板

    1.Index Templates 之前我们聊过Dynamic template,它作用范围是特定的Index,如果我们想针对全局Index进行设置该如何操作呢? Index Templates 可以 ...

  7. 7.2.5 多层嵌套的if语句

    7.2.5 多层嵌套的if语句 在编写程序的代码之前要先规划好.首先,要总体设计一下程序. 为方便起见,程序应该使用一个连续的循环让用户能连续输入待测试的 数.这样,测试一个新的数字不必每次都要重新运 ...

  8. python的列表综合list-comprehension示例,及两列表取补集

    两个目的: 1. 了解了python的list comprehesion的用法 2. 了解了两个列表取交集和补集的方法 R语言取交集和补集更简单,直接有函数. perl 稍麻烦一些, 关键是用hash ...

  9. MPICH2简单的安装配置总结

    ./configure -prefix=/home/mpi/mpich2 make make install 用命令export PATH /home/mpi/mpich2/bin:$PATH,但我是 ...

  10. Linux高级指令

    一.hostname指令 作用:操作服务器的主机名(读取,设置) #hostname    作用:表示输出完整的主机名 #hostname -f    作用:表示输出当前主机名中的FQDN(权限定域名 ...