当前位置:   article > 正文

html5实现用户名及密码登陆设计网页_可以登录复制制作用户密码登录的网页

可以登录复制制作用户密码登录的网页

以同城旅游会员登陆界面为例,

我们可用以下代码实现:

part1 :CSS格式代码段

  1. html {
  2. background: #fff;
  3. }
  4. body,div,dl,dt,dd,ul,ol,li,h1,form,input,p,button,article,footer,header,nav,section {
  5. margin: 0;
  6. padding: 0;
  7. }
  8. article,footer,header,nav,section {
  9. display: block
  10. }
  11. input {
  12. font-size: 100%
  13. }
  14. table {
  15. border-collapse: collapse;
  16. border-spacing: 0
  17. }
  18. th {
  19. text-align: inherit
  20. }
  21. img {
  22. border: 0
  23. }
  24. ul {
  25. list-style: none
  26. }
  27. h1{
  28. font-size: 100%;
  29. font-weight: 500
  30. }
  31. a {
  32. color: #2DA1E7;
  33. text-decoration: none;
  34. font-family: microsoft yahei;
  35. font-size: 15px;
  36. }
Part2:主函数

  1. .header {
  2. height: 44px;
  3. line-height: 44px;
  4. text-align: center;
  5. background-color: #3cafdc
  6. }
  7. .header h1 {
  8. width: 190px;
  9. display: block;
  10. margin: 0 auto;
  11. font-family: microsoft yahei;
  12. font-size: 18px;
  13. color: #fff;
  14. white-space: nowrap;
  15. overflow: hidden;
  16. text-overflow: ellipsis;
  17. font-weight: 700
  18. }
  19. .left-head {
  20. position: absolute;
  21. left: 0;
  22. top: 0;
  23. height: 40px
  24. }
  25. .inset_shadow {
  26. display: block;
  27. overflow: hidden
  28. }
  29. .head-return {
  30. width: 11px;
  31. height: 17px;
  32. margin: 5px 15px 0;
  33. overflow: hidden;
  34. display: inline-block;
  35. background: url(../images/icon_back.png) no-repeat;
  36. background-size: 11px 17px
  37. }
  38. .head-btn {
  39. height: 28px;
  40. line-height: 28px;
  41. display: block;
  42. margin-top: 8px
  43. }
  44. .right-head {
  45. position: absolute;
  46. right: 0;
  47. top: 0;
  48. height: 40px;
  49. padding-right: 5px
  50. }
  51. .head-home {
  52. width: 21px;
  53. height: 20px;
  54. margin: 4px 10px 0;
  55. overflow: hidden;
  56. display: inline-block;
  57. background: url('../images/header-nav.png') no-repeat scroll -4px 2px transparent;
  58. }
  59. .content {
  60. background-color: #f0f0f0;
  61. min-height: 180px
  62. }
  63. #payInfo {
  64. border: 1px solid #ccc;
  65. font-family: microsoft yahei;
  66. font-size: 15px;
  67. }
  68. article.bottom_c section {
  69. padding-left: 10px;
  70. padding-right: 10px;
  71. height: auto;
  72. background-color: #fff;
  73. line-height: 49px;
  74. }
  75. article.bottom_c input[type="text"], article.bottom_c input[type="password"] {
  76. width: 100%;
  77. text-align: left;
  78. outline: none;
  79. box-shadow: none;
  80. border: none;
  81. color: #333;
  82. background-color: #fff;
  83. height: 20px;
  84. margin-left: -5px;
  85. font-family: microsoft yahei;
  86. }
  87. #selectBank {
  88. border-bottom: 1px solid #ccc;
  89. }
  90. section span {
  91. float: left;
  92. padding-left: 5px
  93. }
  94. input::-webkit-input-placeholder {
  95. color: #ccc;
  96. }
  97. section span.fRight {
  98. float: none;
  99. padding-left: 12px;
  100. position: relative;
  101. overflow: hidden;
  102. display: block;
  103. height: 44px;
  104. line-height: 44px;
  105. }
  106. .username {
  107. background: url("../images/ico-user.png") no-repeat;
  108. display: inline-block;
  109. width: 25px;
  110. height: 25px;
  111. background-size: cover;
  112. margin: 6px -5px 0;
  113. }
  114. .password {
  115. background: url("../images/ico-password.png") no-repeat;
  116. display: inline-block;
  117. width: 25px;
  118. height: 26px !important;
  119. height: 25px;
  120. background-size: cover;
  121. margin: 6px -5px 0;
  122. }
  123. .btn-blue {
  124. margin-top: 10px;
  125. background: #fe932b;
  126. border: none;
  127. border-radius: 3px;
  128. font-family: microsoft yahei;
  129. font-size: 18px;
  130. }
  131. .btn {
  132. width: 100%;
  133. height: 40px;
  134. display: block;
  135. line-height: 40px;
  136. text-align: center;
  137. font-size: 18px;
  138. color: #fff;
  139. margin-bottom: 10px;
  140. }
  141. .log_ele {
  142. padding: 0px 10px;
  143. font-size: 15px;
  144. }
  145. .log_ele a:last-child {
  146. float: right
  147. }
  148. footer {
  149. background-color: #3cafdc;
  150. padding: 7px 0
  151. }
  152. footer .footer_link {
  153. text-align: center;
  154. font-size: 14px;
  155. line-height: 2em;
  156. padding-bottom: 5px
  157. }
  158. footer .footer_link a {
  159. font-size: 12px;
  160. color: #fff
  161. }
  162. footer .footer_link .link_1 {
  163. font-size: 12px;
  164. margin: 0 8px;
  165. color: #fff;
  166. line-height: 15px
  167. }
  168. footer .footer_link .link_2 {
  169. margin: 0 9px;
  170. color: #fff;
  171. line-height: 15px
  172. font-size: 12px;
  173. }
  174. footer .footer_link .link_3 {
  175. margin: 0 7px;
  176. color: #fff;
  177. line-height: 15px;
  178. font-size: 12px
  179. }
  180. footer .c_right {
  181. color: #A5DDF6;
  182. line-height: 11px;
  183. margin: 0;
  184. font-size: 12px
  185. }
  186. footer .c_right span,footer .c_right span a {
  187. color: #fff
  188. }



声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/664563
推荐阅读
相关标签
  

闽ICP备14008679号