zoukankan      html  css  js  c++  java
  • html5,表单的综合案例

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>表单综合练习</title>
        <style type="text/css">
          form{ 400px;background: #f7f7f7;padding: 10px;margin-top: 150px;margin-left: 300px;}
          button{background: #808080;padding: 8px;border-radius:5px;}
          button:hover{background: #919191;padding: 10px;border-radius:5px;}
          input{padding: 8px;background: #f8f8f8;}
          input:focus{padding: 8px;background: #a9a9a9;}
        </style>
    </head>
    <body>
        <form action="">
            <fieldset>
            <legend>信息注册</legend>
            <p><label for="user">账号:</label><input type="text" name="user" id="user" placeholder="账号" required=""></p>
            <p><label for="password">密码:</label><input type="password" name="password" id="password" placeholder="密码"></input></p>
            <p><label for="tel">电话:</label><input type="tel" name="tel" id="tel" placeholder="电话"></p>
            <p><label for="email">邮件:</label><input type="email" name="email" id="email" placeholder="电子邮箱"></p>
            <!-- <p><label for=""></label>这样单击后自动获得焦点</p> -->

        <!--     <input type="submit" value="注册"></input> -->
        <button>注册用户</button>
            </fieldset>
        </form>
    </body>
    </html>

    天道酬勤,厚积薄发。 君子之行,静以修身,俭以养德。 非淡泊无以明志,非宁静无以致远。 如有恒,何须三更起,半夜眠;最怕莫,三天打鱼两天晒网,竹篮打水一场空。
  • 相关阅读:
    第三届蓝桥杯CC++B组3
    第三届蓝桥杯CC++B组2
    第三届蓝桥杯CC++B组1
    第四届蓝桥杯c/c++B组3
    第四届蓝桥杯c/c++B组4
    第四届蓝桥杯c/c++B组5
    Nodejs RESTFul架构实践之api篇
    Request —— 让 Node.js http请求变得超简单
    [转]在SqlServer 中解析JSON数据
    JavaScript异步编程的Promise模式
  • 原文地址:https://www.cnblogs.com/houweidong/p/5934252.html
Copyright © 2011-2022 走看看