css布局实现手机端发送验证码登录页面效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现手机端发送验证码登录页面效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <style> * { margin: 0; padding: 0; border: 0; list-style: none; text-decoration: none; color: inherit; font-weight: normal; font-family: "微软雅黑"; box-sizing: border-box; font-style: normal; } body { width: 100%; overflow-x: hidden; background: url(//repo.bfw.wiki/bfwrepo/image/60851ddd30081.png) top left no-repeat; background-size: 100%; } img { vertical-align: middle; max-width: 100%; } a:hover,a:active,a:visited,a:link,a:focus { -webkit-tap-highlight-color: transparent; outline: none; text-decoration: none; } /*头像*/ .head .img { width: 1.45rem; height: 1.45rem; background: #FFFFFF; border-radius: 50%; margin: 0 auto; margin-top: 1.25rem; text-align: center; } .head img { border-radius: 50%; width: 1.25rem; width: 1.45rem; } .head p { text-align: center; color: #f65e04; font-size: .24rem; padding-top: .15rem; } /*登陆表单*/ form { width: 100%; height: auto; overflow: hidden; padding: 1.85rem .45rem .45rem .45rem; } form .item { display: flex; align-items: center; height: .85rem; margin-bottom: .35rem; font-size: .30rem; color: #333333; } form .item input { width: 100%; height: 100%; display: inline-block; border: .01rem solid #ebebeb; border-radius: .85rem; box-shadow: 0px 0px 10px rgba(200,200,200,.1); padding-left: .8rem; outline: none; } form .item input.name { background: url(//repo.bfw.wiki/bfwrepo/image/608ff7893b3e9.png) left .3rem center no-repeat; background-size: .35rem .35rem; } form .item input.vcode { background: url(//repo.bfw.wiki/bfwrepo/image/608ff7a07da6a.png) left .3rem center no-repeat; background-size: .33rem .33rem; } form .item input.password { background: url(//repo.bfw.wiki/bfwrepo/image/608ff7a07da6a.png) left .3rem center no-repeat; background-size: .33rem .33rem; } form .item span { flex-shrink: 0; display: inline-block; width: 1.6rem; margin-left: .2rem; height: 100%; line-height: .85rem; border-radius: .85rem; background: #f65e04; font-size: .24rem; color: #fff; text-align: center; } form .item span.disabled { background: #808080; } form p { text-align: center; color: #333333; font-size: .24rem; padding-top: .2rem; } form .submit { padding: .2rem .2rem; } form .submit button { height: .85rem; line-height: .85rem; text-align: center; font-size: .34rem; color: white; border-radius: .85rem; outline: none; box-shadow: 0 .15rem .15rem rgba(246,94,4,.2); display: inline-block; width: 100%; background: #f65e04; } /*第三方登陆*/ .other-login p { text-align: center; position: relative; display: flex; align-items: center; justify-content: center; width: 3.7rem; margin: 0 auto; } .other-login p:after { content: ""; height: .01rem; width: 100%; background: #808080; top: 50%; transform: translateY(-50%); position: absolute; } .other-login p span { display: inline-block; padding: .1rem .3rem; background: #FFFFFF; color: #808080; font-size: .22rem; z-index: 2; } .other-login .third ul { display: flex; align-items: center; justify-content: center; } .other-login .third ul li img { width: .66rem; height: .66rem; margin: 0 .25rem; } /*尾部*/ .footer { text-align: center; p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0