vue+css布局手机端移动端实名认证表单效果代码
代码语言:html
所属分类:表单美化
代码描述:vue+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;outline: none;-webkit-tap-highlight-color: transparent;} body{width: 100%;overflow-x: hidden;background: #3c7bfb;color: #ffffff;} img{vertical-align: middle;max-width: 100%;} .hide{display: none;} .top-bar{width: 100%;height: .88rem;line-height: .88rem;text-align: center;position: relative;font-size: .36rem;} .top-bar a{width: .5rem;height: .88rem;position: absolute;top: 0;left: .3rem;background: url(//repo.bfw.wiki/bfwrepo/images/app/icon-back.png) left center no-repeat;background-size: .2rem auto;z-index: 2;} .top-bar i{width: .5rem;height: .88rem;position: absolute;top: 0;right: .3rem;background: url(//repo.bfw.wiki/bfwrepo/images/app/icon-more.png) right center no-repeat;background-size: .06rem auto;z-index: 2;} /* 进度 */ .progress{width: 100%;padding: .4rem .2rem;font-size: .24rem;} .progress ul{display: flex;justify-content: space-between;align-items: center;} .progress ul li{text-align: center;width: 100%;color: #77a3fc;position: relative;} .progress ul li i{display: inline-block;width: .14rem;height: .14rem;background: #ffffff;border-radius: 100%;position: relative;} .progress ul li p{padding-top: .35rem;padding-bottom: .1rem;} .progress ul li.active i::after{content: "";position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);display: block;width: .43rem;height: .43rem;background: url(//repo.bfw.wiki/bfwrepo/images/app/icon-point-active.png) center center no-repeat;background-size: 100% 100%;z-index:9 ;} .progress ul li::after{content: "";position: absolute;width: 1.16rem;height: .05rem;background: #77a3fc;border-radius: .05rem;top: .15rem;left: .83rem;z-index: 8;} .progress ul li:last-child::after{display: none;} .progress ul li.active::after{background: #f8f8f8;} .progress ul li.active p{color: #f8f8f8;} /* 主体 */ .container{width: 100%;height: auto;overflow: hidden;padding: 0 .3rem;} .container .box{width: 100%;height: 9.25rem;background: url(//repo.bfw.wiki/bfwrepo/images/app/box-bg.png) right center no-repeat;background-size: 100% auto;} .container .box form{width: 100%;padding: .45rem .25rem .4rem .25rem;} .item-input{width: 100%;height: .88rem;display: flex;justify-content: space-between;align-items: center;background: #f7f7f7;font-size: .32rem;padding-right: .3rem;margin-bottom: .02rem;} .item-input label{color: #222222;flex-shrink: 0;padding-left: .3rem;padding-right: .55rem;} .item-input input{text-indent: .2rem;width: 100%;height: .5rem;background: transparent;color: #333;font-size: .32rem;} .container .box form h4{font-size: .32rem;color: #000;padding-top: .6rem;display: flex;align-items: center;padding-bottom: .35rem;} .container .box form h4 span{color: #eca419;font-size: .24rem;display: flex;align-items: center;} .container .box form h4 span i{flex-shrink: 0;width: .28rem;height: .28rem;background: url(//repo.bfw.wiki/bfwrepo/images/app/icon-warning.png) center center no-repeat;background-size: 100% 100%;margin: 0 .05rem 0 .3rem;} .item-upload{display: flex;justify-content: space-between;align-items: center;} .item-upload>div{width: 3rem;height: 2.6rem;background: #e7efff;border-radius: .15rem;overflow: hidden;} .item-upload .img{width: 100%;height: 2.04rem;display: flex;justify-content: center;align-items: center;} .item-upload .img img{width: 2.25rem;height: 1.5rem;} .item-upload p{width: 100%;height: .56rem;line-height: .56rem;text-align: center;font-size: .3rem;color: #ffffff;background: #3c7bfb;} .container .box form h5{font-size: .32rem;color: #333333;padding-top: .6rem;padding-bottom: .15rem;} .container .box form .help{font-size: .28rem;color: #9d9d9d;text-align: center;} .container .box form .help a{color: #3c7bfb;} .container .box form .submit{text-align: center;padding-top: .15rem;} .container .box form .submit button{width: 5.4rem;height: .88rem;line-height: .88rem;font-size: .34rem;background: #3c7bfb;letter-spacing: .02rem;border-radius: .88rem;} .copyright{text-align: center;font-size: .24rem;color: #97b9fe;padding: .35rem 0;} /* 弹窗 */ .dialog{display: none;} .dialog.active{display: block;} .dialog i{display: block;position: fixed;top: 0;left: 0;width: 100%;height: 100vh;background: rgba(0,0,0,.1);z-index: 99;} .dialog .content{position: absolute;width: 6rem;height: 5rem;overflow-y: auto;padding: .3rem;font-size: .28rem;background: #ffffff;z-index: 100;top: 50%;left: 50%;transform: translate(-50%,-50%);border-radius: .2rem;color: #999;} </style> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/flexible.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue@2.6.1.js"></script> </head> <body> <div id="app"> <div class="top-bar"> <a href="javascript:;"></a> <span>实名认证</span> <i></i> </div> <!-- 进度 --> <div class="progress"> <ul> <li class="active"> <i></i> <p>帐号注册</p> </li> <li class="active"> <i></i> <p>实名认证</p> </li> <li> <i></i> <p>设置密码</p> </li> <li> <i></i> <p>绑定银行卡</p> </li> &l.........完整代码请登录后点击上方下载按钮下载查看
网友评论0