|
楼主 |
发表于 2020-11-21 11:50:41
From FishC Mobile
|
显示全部楼层
小甲鱼 发表于 2020-11-21 03:15
浏览器没加载出来?
最好提供一下代码哈~
body{ margin: 0; padding: 0; font-family: sans-serif; background-image: url("../img/7.jpg"); background-size:cover; /* 平铺 */ background-repeat: no-repeat; background-attachment: fixed; /* 当页面的其余部分滚动时,背景图像不会移动 */ }.box{ position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 400px; padding: 40px; background: rgba(0, 0, 0, 0.5); box-sizing: border-box; box-shadow: 0 15px 25px rgba(0, 0, 0, 0.7); border-radius: 10px;}.box h1{ margin: 0 0 30px; padding: 0; color: white; text-align: center;}.box .inputBox{ position: relative;}.box .inputBox input{ width: 100%; padding: 10px 0; font-size: 20px; color: white; letter-spacing: 1px; margin-bottom: 30px; border: none; border-bottom: 1px solid white; outline: none; background: transparent;}.box .inputBox input:focus{ border-bottom: 1px solid rgb(15, 200, 150) ;}.box .inputBox label{ position: absolute; top: 0; left: 0; padding: 10px 0; font-size: 20px; color: white; letter-spacing: 1px; pointer-events: none; transition: 1s;}.box .inputBox input:focus ~ label,.box .inputBox input:valid ~ label{ top: -25px; left: 0; color: rgb(15, 200, 150); font-size: 15px;}.box .submitBox{ text-align: center;}.box input[type="submit"],input[type="reset"]{ font-size: 15px; border: none; outline: none; color: white; background: rgb(15, 200, 150); padding: 10px 20px; cursor: pointer; border-radius: 7px;}.cloud img{ position: fixed; bottom: -10%; max-width: 100%; animation: animate calc(10s * var(--i)) linear infinite;}@keyframes animate{ 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }} |
|