整图背景登录/注册页
来源:互联网 发布:java判断质数的算法 编辑:程序博客网 时间:2024/06/06 19:10
html
<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title>登陆页</title> <link rel="stylesheet" href="css/login.css"/></head><body><section> <div> <div> <h1>公 司</h1> <div> <span>登 录</span> <span>注 册</span> </div> </div> <div> <div> <span><img src="imgaes/mail.png" alt=""/></span> <input type="text" placeholder="邮箱/手机号"/> </div> <div> <span><img src="imgaes/lock.png" alt=""/></span> <input type="password" placeholder="密码"/> </div> <div> 登 录 </div> </div> </div></section></body></html>less
html,body{ margin:0; height:100%;}body{ margin: 0; padding: 0; color: #fff; height: 100%; background: url("../imgaes/background.png") no-repeat; background-size:cover; img{ vertical-align: middle; } >section{ background:rgba(0,0,0,.2); position: relative; overflow-x: auto; overflow-y: hidden; width: 100%; height: 100%; >div{ width: 80%; height: 80%; max-width: 1200px; max-height: 768px; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%,-50%); -moz-transform: translate(-50%,-50%); -ms-transform: translate(-50%,-50%); -o-transform: translate(-50%,-50%); transform: translate(-50%,-50%); >div:first-child{ h1{ margin: 0; font-weight: normal; padding: 10px 0 10px 50px; display: inline-block; font-size: 28px; } >div{ float: right; line-height: 62px; >span{ font-size: 16px; padding: 8px 14px; margin: 0 10px; } >span:last-child{ border: 1px solid #ccc; border-radius: 6px; } } } >div:last-child{ width: 50%; height: 50%; text-align: center; position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%,-50%); -moz-transform: translate(-50%,-50%); -ms-transform: translate(-50%,-50%); -o-transform: translate(-50%,-50%); transform: translate(-50%,-50%); >div{ height: 65px; line-height: 65px; width: 60%; display: inline-block; margin: 14px auto; border-bottom: 1px solid #fff; text-align: left; >span{ text-align: center; display: inline-block; width: 20%; height: 60px; } >input{ background: transparent; height: 100%; border: none; outline: none; display: inline-block; vertical-align: middle; color: #ccc; font-size: 18px; width: 78%; } >input:active{ outline: none; } } >div:last-child{ font-size: 20px; border: 0; background: rgba(27,113,184,.6); border-radius: 30px; text-align: center; height: 65px; } } } }}
0 0
- 整图背景登录/注册页
- 仿陌陌注册登录引导页背景效果
- 登录注册页
- 注册登录
- 注册登录
- 注册登录
- 登录注册
- 登录注册
- 登录,注册
- 登录注册
- 登录注册
- 登录注册
- 注册登录
- Android登录注册界面添加视频背景方法(简单版)
- 以小见大:如何设计注册登录页?
- 一张图看懂Android注册登录+服务端
- 用户注册与登录构造图
- 仿Uber注册页背景视屏效果
- 《Node.js》包管理
- a标签添加onclick事件的几种方式
- 最好用的网络监控工具
- Lottie动画在Android和Ios开发中的应用——Ios篇
- c# 获取本地路径
- 整图背景登录/注册页
- 最大的两个数(求两次最大值)
- java web设置过滤器
- 局部加权回归LOESS(locally weighted regression)
- hadoop 错误锦集
- Mysql优化系列(1)--Innodb引擎下mysql自身配置优化
- php5.39以下版本操作elasticsearch
- getBackground().setAlpha导致其他布局背景透明度都改变的问题
- SQL中视图与表的区别