loginInput

功能描述

  1. 带动画的input组件

依赖的模块

  1. 不需要依赖

快速使用

  1. <div class="login_box_input">
  2. /*input*/
  3. <input type="text" required="required">
  4. /*placeholder*/
  5. <label>请输入用户名</label>
  6. /*只是下划线*/
  7. <span></span>
  8. </div>
  9. ```
  10. css
  11. * {
  12. margin: 0;
  13. padding: 0;
  14. }
  15. body {
  16. background-color: #fff;
  17. font-size: 3.73333vw;
  18. color: #333;
  19. }
  20. .login_box_input::before {
  21. content: '';
  22. position: absolute;
  23. left: 0;
  24. bottom: 0;
  25. background: #fff;
  26. right: 0;
  27. height: 1px;
  28. -webkit-transform: scaleY(.5);
  29. transform: scaleY(.5);
  30. background: #c6c6c6;
  31. z-index: 1;
  32. }
  1. # 特别说明

已做了自适应(vw单位),兼容所有端,如需要更多自定义功能或反馈与BUG,可联系QQ:910547462 ```