登录页面带头像标志的方法
index.css: body { margin: 0; padding: 0; background: url(./image/gufeng2.jpg); font-family: sans-serif; } .loginBox { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 450px; min-height: 200px; background: #fff; border-radius: 10px; padding: 40px; box-sizing: border-box; } .user { margin: 0 auto; display: block; margin-bottom: 20px; } h1 { margin: 0; padding: 0 0 20px; color: #262626; text-align: center; } .loginBox input { width: 100%; margin-bottom: 20px; } .loginBox input[type="text"] .loginBox input[type="password"] { border: none; border-bottom: 2px solid #262626; outline: none; height: 40px; color: #262626; background: transparent; font-size: 16px; padding-left: 20px; box-sizing: border-box; } .loginBox input[type="text"]:focus, .loginBox input[type=&