当前位置:   article > 正文

4位随机验证码的生成_存入一个字符数组), //通过这些字母随机产生四位验证码,并将验证码在主方法中打

存入一个字符数组), //通过这些字母随机产生四位验证码,并将验证码在主方法中打
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>4位随机验证码的生成</title>
  6. <style>
  7. label{
  8. color:aqua;
  9. float:left;
  10. font-size: 20px;
  11. line-height:2em;
  12. }
  13. #tex{
  14. display:inline-block;
  15. width:50px;
  16. height: 25px;
  17. float:left;
  18. text-align: center;
  19. font-size:15px;
  20. margin-top:10px;
  21. }
  22. #showyz{
  23. border:3px solid green;
  24. color:blue;
  25. width:90px;
  26. height:40px;
  27. text-align:center;
  28. float:left;
  29. margin-left:15px;
  30. line-height: 2.5em;
  31. }
  32. #hyz{
  33. background-color:burlywood;
  34. border:1px solid burlywood;
  35. width:50px;
  36. height:20px;
  37. float: left;
  38. margin-left:20px;
  39. margin-top: 10px;
  40. margin-right:15px;
  41. }
  42. #btn{
  43. }
  44. </style>
  45. </head>
  46. <body>
  47. <label for="tex">请输入验证码:</label><input type="text" id="tex" maxlength="4" autofocus>
  48. <div id="showyz"></div>
  49. <div id=
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/54570
推荐阅读
相关标签
  

闽ICP备14008679号