web实验 用户注册界面

怼烎@ 2023-03-12 10:58 169阅读 0赞

HTML代码部分

  1. 在这里插入代码片
  2. <!DOCTYPE>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>用户注册</title>
  7. <link rel="stylesheet" href="reg.css">
  8. </head>
  9. <body>
  10. <div id="container">
  11. <!--页面标题-->
  12. <h1>空壳公司用户注册</h1>
  13. <hr />
  14. <!--表单-->
  15. <form method="post" action="URL" autocomplete="on">
  16. <label> 户:
  17. <input type="text" placeholder="请输入用户名" name="username" required/>
  18. </label>
  19. <br />
  20. <label> 码:
  21. <input type="password" placeholder="请输入新密码" name="pwd" required/>
  22. </label>
  23. <br />
  24. <label> 认:
  25. <input type="password" placeholder="请再次输入密码" name="pwd2" required/>
  26. </label>
  27. <br />
  28. <label> 名:
  29. <input type="text" placeholder="请输入真实姓名" name="name" required/>
  30. </label>
  31. <br />
  32. <label> 箱:
  33. <input type="email" placeholder="请输入电子邮箱" name="email" required/>
  34. </label>
  35. <br />
  36. <label> 机:
  37. <input type="tel" placeholder="请输入手机号码" name="tel"/>
  38. </label>
  39. <br />
  40. <button type="submit">
  41. 提交注册
  42. </button>
  43. <button type="reset">
  44. 清空内容
  45. </button>
  46. </form>
  47. </div>
  48. </body>
  49. </html>

css代码部分

  1. #container{
  2. background-color:#87CEEB;
  3. color:#2F4F4F;
  4. padding:15px;
  5. margin:100px auto 0px;
  6. width:600px;
  7. text-align:center;
  8. font-family:"微软雅黑 Light";
  9. box-shadow:10px 10px 15px black;/*美化界面*/
  10. }
  11. hr{
  12. width:80%;
  13. border:#8B0000 1px solid;
  14. margin-bottom:15px;
  15. }
  16. body{
  17. background-image:url("1.jpg");
  18. }
  19. input{
  20. width:180px;
  21. height:20px;
  22. margin:5px;
  23. font-size:16px;
  24. font-family:"微软雅黑 Light";
  25. }
  26. button{
  27. width:120px;
  28. height:40px;
  29. background-color:#F08080;
  30. border:0px;
  31. color:white;
  32. margin:10px;
  33. font-size:18px;
  34. font-family:"宋体";
  35. font-weight:bold;
  36. }
  37. button:hover{
  38. background-color:#800000;
  39. color:#B0C4DE;
  40. }

实现界面:
在这里插入图片描述

发表评论

表情:
评论列表 (有 0 条评论,169人围观)

还没有评论,来说两句吧...

相关阅读