• CSS构造表单


    结构化表单布局 

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
    <title>选择符类型_标签选择符</title>
    <style type="text/css">
        #regForm fieldset {
            padding:20px;;
            border:0;
            border-top:1px #d0d0bf solid;
        }
        #regForm legend {
            padding:0 10px;
            font-weight:bold;
        }
        #regForm .dataArea {
            padding:3px 0;
        }
        #regForm .frist {
            padding:8px 0 2px;
        }
        #regForm .subArea input {
            padding:1px 4px;
        }
        #regForm label {
            width:112px;
            text-align:right;
            float:left;
        }
    </style>
    </head>
    
    <body>
        <form id="regForm">
            <fieldset>
                <legend>登陆信息</legend>
                    <div class="dataArea frist">
                        <label for="username"> 用户 名 : </label><input type="text" id="username" class="input" />
                    </div>
                    <div class="dataArea">
                        <label for="password"> 密 码 : </label><input type="text" id="password" class="input" />
                    </div>
                    <div class="dataArea">
                        <label for="passwordVerify"> 确 认 密 码 : </label><input type="text" id="passwordVerify" class="input" />
                    </div>
            </fieldset>
            <fieldset>
                <legend>个人信息</legend>
                    <div class="dataArea frist">
                        <label for="nickname"> 昵 称 : </label><input type="text" id="nickname" />
                    </div>
                    <div class="dataArea">
                        <label for="email" class="hint"> 电子邮 件 : </label><input type="text" id="email" />
                    </div>
                    <div class="subArea">
                        <input type="submit" value="注册 " /> <input type="button" value="返回" />
                    </div>
            </fieldset>
        </form>
    </body>

    表单外边框设置

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
    <title>选择符类型_标签选择符</title>
    <style type="text/css">
        Fieldset {
            Margin:0 0 10px 0;
            Padding: 5px;
            Border: 1px solid #333;
        }
        Legend {
            Background-color: #ddd;
            Margin:0;
            Padding: 5px;
            Border-style: solid;
            Border-width: 1px;
            Border-color: #fff #aaa #666 #fff;
        }
        Fieldset {
            Background: #ddd;
        }
    </style>
    </head>
    
    <body>
        <form>
            <fieldset>
                <legend>登陆信息</legend>
                    
            </fieldset>
         </form>
    </body>
  • 相关阅读:
    mysql 初始密码 设置
    jsp基础知识(基本的语法及原理)
    hdu 2473 Junk-Mail Filter (并查集之点的删除)
    java版本的学生管理系统
    java操作数据库出现(][SQLServer 2000 Driver for JDBC]Error establishing socket.)的问题所在即解决办法
    Java学习之约瑟夫环的两中处理方法
    hdu 3367(Pseudoforest ) (最大生成树)
    hdu 1561 The more, The Better (树上背包)
    Nginx + Lua 搭建网站WAF防火墙
    长连接和短连接
  • 原文地址:https://www.cnblogs.com/LO-ME/p/3617631.html
Copyright © 2020-2023  润新知