mint-ui实现移动端手机端三级城市选择弹出层效果代码
代码语言:html
所属分类:弹出层
代码描述:mint-ui实现移动端手机端三级城市选择弹出层效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/mintui.min.css">
<style>
/* css reset */
body, div, p, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, a, input, button, textarea, table, th, tr, td {
margin: 0;
padding: 0;
border: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
height: 100%;
width: 100%;
}
body {
color: #333;
font-family: "微软雅黑";
width: 100%;
}
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
font-size: 100%;
}
input, textarea{
outline: none;
}
a {
color: #555;
text-decoration: none;
}
a:hover {
text-decoration: none;
}
img {
border: none;
}
ol, ul, li {
list-style: none;
}
.vueBox{
width: 100%;
}
/* placeholder 字体颜色*/
::-webkit-input-placeholder { /* WebKit browsers */
color:#B0B0B0;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color:#B0B0B0;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color:#B0B0B0;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
color:#B0B0B0;
}
/* prefixed by https://autoprefixer.github.io (PostCSS: v7.0.26, autoprefixer: v9.7.3) */
.exam-header {
position: relative;
width: 100%;
background-color: #fff;
border-bottom: 0.2rem solid #f5f5f5;
}
.exam-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4rem;
background: -webkit-linear-gradient(315deg, rgba(5, 201, 221, 1) 0%, rgba(23, 196, 160, 1) 100%);
background: -moz-linear-gradient(315deg, rgba(5, 201, 221, 1) 0%, rgba(23, 196, 160, 1) 100%);
background: -o-linear-gradient(315deg, rgba(5, 201, 221, 1) 0%, rgba(23, 196, 160, 1) 100%);
background: linear-gradient(135deg, rgba(5, 201, 221, 1) 0%, rgba(23, 196, 160, 1) 100%);
}
.exam-bg::before {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 1rem;
background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, 1)));
background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
background: -o-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}
.exam-bg::after {
content: '';
position: absolute;
bottom: -.5rem;
left: 0.2rem;
width: 7.1rem;
height: .9rem;
background: rgba(170, 233, 221, 1);
-webkit-border-radius: 1px;
-moz-border-radius: 1px;
border-radius: 1px;
opacity: 0.5;
-webkit-filter: blur(24px);
filter: blur(24px);
}
.programs-box {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-webkit-justify-content: center;
-moz-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 6.9rem;
background: #fff;
-webkit-border-radius: 0.2rem;
-moz-border-radius: 0.2rem;
border-radius: 0.2rem;
margin: 0.2rem auto;
font-size: 0.24rem;
-webkit-box-shadow: 0px 1px 0.16rem 0px rgba(174, 181, 180, 0.24);
-moz-box-shadow: 0px 1px 0.16rem 0px rgba(174, 181, 180, 0.24);
box-shadow: 0px 1px 0.16rem 0px rgba(174, 181, 180, 0.24);
border-radius: 0.2rem;
}
.programs-head {
position: relative;
width: 100%;
padding: 0 0.3rem;
height: 0.88rem;
background-color: #FFBE64;
-webkit-box-shadow: 0px 3px 5px 0px rgba(255, 111, 28, 0.24);
-moz-box-shadow: 0px 3px 5px 0px rgba(255, 111, 28, 0.24);
box-shadow: 0px 3px 5px 0px rgba(255, 111, 28, 0.24);
-webkit-border-radius: 0.2rem 0.2rem 0px 0px;
-moz-border-radius: 0.2rem 0.2rem 0px 0px;
border-radius: 0.2rem 0.2rem 0px 0px;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: end;
-webkit-justify-content: flex-end;
-moz-box-pack: end;
-ms-flex-pack: end;
justify-content: flex-end;
font-size: 0.26rem;
color: #fff;
}
.countdown-img {
position: absolute;
left: 0.3rem;
top: 50%;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
width: 1.15rem;
height: 0.3rem;
}
.programs-head .highlight {
color: #FFF77E;
font-size: 0.44rem;
padding: 0 0.1rem;
}
.programs-tabs {
position: relative;
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
color: #999999;
padding: 0.2rem 0;
}
.programs-tabs li {
position: relative;
-webkit-box-flex: 1;
-webkit-flex: 1;
-moz-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-webkit-justify-content: center;
-moz-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.programs-txt {
color: #1C1C1C;
}
.programs-txt span:first-child {
font-size: 0.56rem;
}
.programs-line {
width: 6.3rem;
height: 1px;
position: relative;
background-color: #F6F6F6;
}
.programs-progress {
width: 100%;
padding: 0.2rem 0.3rem;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-moz-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
color: #666666;
font-size: 0.24rem;
}
.programs-progress .highlight {
color: #15BCC3;
}
.progress-nums {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.progress-btn {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-moz-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
width: 1.6rem;
height: 0.64rem;
background: #F6F6F6;
-webkit-border-radius: 0.32rem;
-moz-border-radius: 0.32rem;
border-radius: 0.32rem;
color: #15BCC3;
}
.programs-btns {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-moz-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
width: 100%;
padding: 0.3rem;
color: #fff;
}
.programs-btns li {
width: 3.08rem;
height: 0.84rem;
background-color: #E2F8F8;
font-size: 0.32rem;
color: #15BCC3;
-webkit-border-radius: 0.1rem;
-moz-border-radius: 0.1rem;
border-radius: 0.1rem;
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-moz-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.programs-vip {
position: absolute;
right: 0.1rem;
top: -0.2rem;
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0