1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
| <!DOCTYPE html> <html lang="en">
<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>登录界面</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: 10px; } html::before { content: ''; width: 100%; height: 100%; position: fixed; z-index: -1; background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%) no-repeat; } .box { width: 70rem; height: 40rem; background-color: rgba(255, 255, 255, 30%); margin: 10rem auto; border-radius: 1.5rem; border: 2px solid #000; overflow: hidden; display: flex; box-shadow: 0 0 1rem 0.1rem; } .box .left { position: relative; width: 35%; height: 100%; background-color: rgb(235, 135, 200); opacity: 85%; } .box .left::before { content: ''; position: absolute; width: 100%; height: 100%; background-image: url(/img/Miku01.jpg); background-size: cover; } .box .right { width: 65%; height: 100%; display: flex; flex-direction: column; align-items: center; background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%) no-repeat; } .box .right form { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; } .box .right h3 { font-size: 3rem; color: rgb(124, 129, 241); text-align: center; line-height: 3rem; width: 15rem; height: 3rem; margin-top: 3rem; margin-bottom: 3rem; cursor: default; } .box .right .input { padding-top: 1rem; padding-left: 1rem; font-size: 2rem; margin-top: 5%; width: 60%; height: 15%; border: none; outline: none; border-bottom: 1px solid rgb(144, 129, 241); background-color: rgba(0, 0, 0, 0); } .box .right .login { margin-top: 4rem; width: 30%; height: 15%; border: none; font-size: 3rem; color: rgb(144, 129, 241); cursor: pointer; background: linear-gradient(120deg, #e0c3fc 5%, #8ec5fc 100%); } .box .right .function { display: flex; justify-content: space-between; width: 90%; height: 10%; font-size: 2rem; margin-bottom: 1rem; } .box .right .function a { text-decoration: none; color: #6b7072; } .box .right .function a:hover { color: rgb(234, 108, 108); } .box .right .login:hover { color: rgb(245, 149, 162); } </style> </head>
<body> <div class="box"> <div class="left"></div> <div class="right"> <h3>登录</h3> <form> <input class="input" type="text" placeholder="用户名"> <input class="input" type="password" placeholder="密码"> <input class="login" type="submit" value="Login"> </form> <div class="function"> <a href="#">注册用户</a> <a href="#">忘记密码</a> </div> </div> </div> </body>
</html>
|