博客列表 >用户注册表单与简单后台

用户注册表单与简单后台

喜
原创
2022年07月07日 11:54:09273浏览

1.用户注册表单

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. </head>
  9. <style>
  10. * {
  11. margin: 0;
  12. padding: 0;
  13. box-sizing: border-box;
  14. }
  15. a {
  16. text-decoration: none;
  17. }
  18. .box {
  19. width: 1200px;
  20. margin: 100px auto 15px;
  21. border: 1px solid #dfdfdf;
  22. }
  23. .box .title {
  24. display: flex;
  25. justify-content: space-between;
  26. align-items: center;
  27. background: #ececec;
  28. padding: 6px 15px;
  29. }
  30. .box .title h3 {
  31. border-bottom: 1px solid #dfdfdf;
  32. color: #333;
  33. }
  34. .box .title p {
  35. font-size: 14px;
  36. font-weight: bold;
  37. }
  38. .box .title p a {
  39. color: #28a3ef;
  40. }
  41. .box .bottom {
  42. margin: 40px auto;
  43. width: 600px;
  44. display: grid;
  45. grid-template-rows: repeat(6, 38px);
  46. gap: 18px 0;
  47. }
  48. .box .bottom .inp {
  49. width: 368px;
  50. display: grid;
  51. grid-template-columns: 96px 1fr;
  52. gap: 0 2px;
  53. }
  54. .box .bottom .inp #check {
  55. grid-area: 1/2/2/3;
  56. place-self: center start;
  57. }
  58. .box .bottom .inp .bt1 {
  59. grid-area: 1/2/2/3;
  60. padding-left: 16px;
  61. font-size: 12px;
  62. color: #333;
  63. place-self: center start;
  64. }
  65. .box .bottom .inp label {
  66. place-self: center end;
  67. font-size: 14px;
  68. color: #333;
  69. }
  70. .box .bottom .inp input {
  71. border: 1px solid #999;
  72. border-radius: 0;
  73. padding: 6px 8px;
  74. outline: none;
  75. }
  76. .box button {
  77. width: 270px;
  78. padding: 6px;
  79. border-radius: 0;
  80. background-color: #c81623;
  81. border: none;
  82. color: #fff;
  83. font-size: 16px;
  84. margin-left: 99px;
  85. }
  86. .foot {
  87. width: 1200px;
  88. margin: 0 auto;
  89. text-align: center;
  90. }
  91. .foot .top {
  92. display: flex;
  93. justify-content: center;
  94. }
  95. .foot .top a {
  96. margin: 15px 0;
  97. padding: 0 20px;
  98. border-right: 1px solid #e4e4e4;
  99. font-size: 12px;
  100. color: #666;
  101. }
  102. .foot p {
  103. font-size: 12px;
  104. margin-bottom: 5px;
  105. }
  106. .at {
  107. border-color: #e6e6e6 !important;
  108. background-color: #f3f3f3 !important;
  109. color: #c6c6c6 !important;
  110. }
  111. </style>
  112. <body>
  113. <div class="box">
  114. <div class="title">
  115. <h3>注册新用户</h3>
  116. <p>我有账号,去<a href="#">登陆</a></p>
  117. </div>
  118. <div class="bottom">
  119. <div class="inp">
  120. <label for="user">用户名:</label>
  121. <input type="text" placeholder="用户名" id="user" name="user">
  122. </div>
  123. <div class="inp"><label for="email">邮箱:</label>
  124. <input type="email" placeholder="邮箱" id="email" name="email"></div>
  125. <div class="inp"><label for="password">登录密码:</label>
  126. <input type="password" placeholder="设置登录密码" id="password"></div>
  127. <div class="inp"> <label for="pass">确认密码:</label>
  128. <input type="password" placeholder="再次确认密码" id="pass" name="pass"></div>
  129. <div class="inp">
  130. <input type="checkbox" class="bt" id="check" checked >
  131. <label for="check" class="bt1">同意协议并注册《品优购用户协议》
  132. </label></div>
  133. <button >完成注册</button>
  134. </div>
  135. </div>
  136. <div class="foot">
  137. <div class="top">
  138. <a href="#">关于我们</a>
  139. <a href="#">联系我们</a>
  140. <a href="#">联系客服</a>
  141. <a href="#">商家入驻</a>
  142. <a href="#">营销中心</a>
  143. <a href="#">手机品优购</a>
  144. <a href="#">销售联盟</a>
  145. <a href="#">品优购社区</a>
  146. <a href="#">品优购公益</a>
  147. <a href="#">English Site</a>
  148. <a href="#">Contact U</a>
  149. </div>
  150. <p>地址:北京市昌平区建材城西路金燕龙办公楼一层 邮编:100096 电话:400-618-4000 传真:010-82935100</p>
  151. <p>京ICP备08001421号京公网安备110108007702</p>
  152. </div>
  153. <script>
  154. let check=document.querySelector('input[type="checkbox"]')
  155. let btn=document.querySelector('button')
  156. check.addEventListener('click',function(){
  157. // if(check.checked){
  158. // btn.disabled=false
  159. // btn.classList.remove('at')
  160. // }else{
  161. // btn.disabled=true
  162. // btn.classList.add('at')
  163. // }
  164. btn.classList.toggle('at')
  165. btn.disabled=!check.checked
  166. })
  167. </script>
  168. </body>
  169. </html>

2.简单后台

  1. <body>
  2. <div class="top">
  3. <h1>网站台管理系统</h1>
  4. <p><span>admin</span>
  5. <a href="#">退出</a></p>
  6. </div>
  7. <div class="one">
  8. <div class="left">
  9. <a href="https://map.baidu.com/" target="max">baidu</a>
  10. <a href="https://map.baidu.com/" target="max">baidu</a>
  11. <a href="https://map.baidu.com/" target="max">baidu</a>
  12. <a href="https://map.baidu.com/" target="max">baidu</a>
  13. </div>
  14. <iframe srcdoc="点击左边链接" frameborder="1" name="max"></iframe>
  15. </body>
  1. <style>
  2. *{
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. .top{
  8. display: flex;
  9. background-color: aquamarine;
  10. justify-content: space-between;
  11. align-items: center;
  12. width: 1200px;
  13. height: 100px;
  14. padding: 0 20px;
  15. margin: 0 auto;
  16. }
  17. .one {
  18. display:flex;
  19. width: 1200px;
  20. height: 800px;
  21. margin: 0 auto;
  22. }
  23. .left{
  24. width: 100px;
  25. background-color: hotpink;
  26. text-align: center;
  27. }
  28. iframe{
  29. flex: 1;
  30. }
  31. .left a{
  32. display: block;
  33. margin: 10px 0;
  34. }
  35. </style>
声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议