*,html,body{ padding: 0; margin: 0; width: 100%; height: 100%; } body{ background-image: url("img/bg.jpg"); background-repeat: no-repeat; background-size: 100% 100%; position: relative; font-family: 'Microsoft YaHei',arial,tahoma,sans-serif; } .login-center{ position: relative; top: 42%; left: 50%; margin-top: -200px; margin-left: -200px; width: 360px; height:400px ; } .login{ height: 400px; background-color: #fff; background-color: rgba(255,255,255,0.5); filter:Alpha(opacity=50); border-radius:5px; margin-top: 20px; position: relative; } .logo{ position: relative; width: 100%; height: 50px; background-image: url("img/logo.png"); background-repeat: no-repeat; background-position: center; background-size: 240px 48px; } .font-center{ text-align: center; font-size: 25px; font-weight: bold; padding-top: 20px; height: 25px; } .username{ position: relative; top: 30px; text-align: center; height: 54px; } .password{ position: relative; top: 60px; text-align: center; height: 54px; } .unitId{ position: relative; top: 90px; text-align: center; height: 54px; } input{ border: none; height: 50px; width: 200px; border: 2px solid #000; border-radius: 8px; font-size: 25px; padding-left: 50px; line-height: 50px; } select{ border: none; height: 50px; width: 250px; border: 2px solid #000; border-radius: 8px; font-size: 25px; padding-left: 50px; line-height: 50px; } input:focus{ border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6); } .confirm{ height: 50px; width: 100%; position: relative; opacity: 1; top:125px; text-align: center; } .confirm button{ box-shadow: none; opacity: 2; width: 200px; font-size: 20px; line-height: 45px; background-color: #337ab7; color: #fff; border-radius: 6px; border:1px solid #2e6da4; cursor: pointer; user-select: none; -webkit-user-select: none; } .confirm button:focus{ outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; text-decoration: none; } .confirm button:active{ background-image: none; outline: 0; box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); } .confirm button:hover{ color: #fff; background-color: #286090; border-color: #204d74; } .img{ width: 30px; height: 30px; position: absolute; top: 13px; left: 67px; user-select: none; -webkit-user-select: none; }