UID167707性别保密经验 EP铁粒 粒回帖0主题精华在线时间 小时注册时间2021-10-5最后登录1970-1-1
|
发表于 2022-6-11 20:04:42|显示全部楼层 IP:河北省 本帖最后由 MingHaoGame 于 2022-6-11 20:06 编辑
看看这个index.html
- <!DOCTYPE html>
- <html lang="zh-CN"><!--BY:MingHaoGame-->
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>登陆 作者:MingHaoGame</title>
- <link rel="stylesheet" href="style.css">
- </head>
- <body>
- <div class="box">
- <h2>登陆</h2>
- <div class="input-box">
- <label>账号</label>
- <input type="text"/>
- </div>
- <div class="input-box">
- <label>密码</label>
- <input type="password"/>
- </div>
- <div class="btn-box">
- <a href="#">忘记密码?</a>
- <div>
- <button>登录</button>
- <button>注册</button><!--BY:MingHaoGame-->
- </div>
- </div>
- </div>
- <script type="text/javascript">
- </script>
- </body>
- </html>
复制代码 style.css
- * {
- margin: 0;
- padding: 0;
- }
- body {
- height: 100vh;
- background: url(image/bg.png) no-repeat;
- background-size: cover;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .box {
- width: 350px;
- height: 350px;
- border-top: 1px solid rgba(255,255,255,0.5);
- border-left: 1px solid rgba(255,255,255,0.5);
- border-bottom: 1px solid rgba(255,255,255,0.3);
- border-right: 1px solid rgba(255,255,255,0.3);
- backdrop-filter: blur(10px);
- background: rgba(50,50,50,0.2);
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- border-radius: 10px;
- }
- .box > h2 {
- color: rgba(255,255,255,0.9);
- margin-bottom: 30px;
- }
- .box .input-box {
- display: flex;
- flex-direction: column;
- box-sizing: border-box;
- margin-bottom: 10px;
- }
- .box .input-box label {
- font-size: 13px;
- color: rgba(255,255,255,0.9);
- margin-bottom: 5px;
- }
- .box .input-box input {
- letter-spacing: 1px;
- font-size: 14px;
- box-sizing: border-box;
- width: 250px;
- height: 35px;
- border-radius: 5px;
- border: 1px solid rgba(255,255,255,0.5);
- background: rgba(255,255,255,0.2);
- outline: none;
- padding: 0 12px;
- color: rgba(255,255,255,0.9);
- transition: 0.2s;
- }
- .box .input-box input:focus {
- border: 1px solid rgba(255,255,255,0.8);
- }
- .box .btn-box {
- width: 250px;
- display: flex;
- flex-direction: column;
- align-items: start;
- }
- .box .btn-box > a {
- outline: none;
- display: block;
- width: 250px;
- text-align: end;
- text-decoration: none;
- font-size: 13px;
- color: rgba(255,255,255,0.9);
- }
- .box .btn-box > a:hover {
- color: rgba(255,255,255,1);
- }
- .box .btn-box > div {
- margin-top: 10px;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .box .btn-box > div > button {
- outline: none;
- margin-top: 10px;
- display: block;
- font-size: 14px;
- border-radius: 5px;
- transition: 0.2s;
- }
- .box .btn-box > div > button:nth-of-type(1) {
- width: 120px;
- height: 35px;
- color: rgba(255,255,255,0.9);
- border: 1px solid rgba(192, 119, 91, 0.7);
- background: rgba(192, 119, 91, 0.5);
- }
- .box .btn-box > div > button:nth-of-type(2) {
- width: 120px;
- height: 35px;
- margin-left: 10px;
- color: rgba(255,255,255,0.9);
- border: 1px solid rgba(192, 119, 91, 0.7);
- background: rgba(192, 119, 91, 0.5);
- }
- .box .btn-box > div > button:hover {
- border: 1px solid rgba(251, 128, 71, 0.7);
- background: rgba(251, 128, 71, 0.5);
- }
复制代码
|
评分查看全部评分
3#2022-6-11 20:04:42回复(0)收起回复 |