Ins风格简单干净房间Mac高清动态壁纸

为大家带来一款Ins风格简单干净房间高清动态壁纸,会随着时间变化而发生变化,如果你喜欢ins风格的壁纸,那么快来体验这款房间高清动态壁纸吧!

Ins风格简单干净房间高清动态壁纸







  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,以下是一个简单INS风格登录界面的HTML和CSS代码: HTML代码: ``` <div class="container"> <div class="form-container"> <form> <h1>登录</h1> <input type="text" placeholder="用户名"> <input type="password" placeholder="密码"> <button type="submit">登录</button> <p>还没有账号?<a href="#">注册</a></p> </form> </div> <div class="img-container"> <img src="https://images.unsplash.com/photo-1521747116042-5a810fda9667?ixlib=rb-1.2.1&auto=format&fit=crop&w=634&q=80" alt=""> </div> </div> ``` CSS代码: ``` * { margin: 0; padding: 0; box-sizing: border-box; font-family: sans-serif; } body { background-color: #fafafa; } .container { display: flex; justify-content: center; align-items: center; height: 100vh; } .form-container { width: 400px; background-color: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .form-container h1 { text-align: center; font-size: 30px; margin-bottom: 20px; color: #333; } .form-container input { width: 100%; padding: 10px; margin-bottom: 20px; border: none; border-bottom: 1px solid #999; background-color: transparent; color: #333; font-size: 18px; } .form-container input::placeholder { color: #999; } .form-container button { width: 100%; padding: 10px; margin-top: 20px; border: none; background-color: #3897f0; color: #fff; font-size: 18px; border-radius: 5px; cursor: pointer; } .form-container p { text-align: center; margin-top: 20px; color: #999; font-size: 16px; } .form-container a { color: #3897f0; text-decoration: none; } .img-container { position: absolute; right: 0; top: 0; height: 100vh; width: 60%; overflow: hidden; } .img-container img { height: 100%; width: 100%; object-fit: cover; transform: translateX(30%); } ``` 这段代码会创建一个包含登录界面和背景图片的容器,其中登录界面包含一个包括用户名、密码和登录按钮的表单,以及一个注册链接。背景图片使用了overflow:hidden属性来隐藏超出容器宽度的部分,同时使用transform:translateX()属性来将图片向左移动30%的宽度,实现了视差滚动效果。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值