vue实现移动端手机端问卷调查答题效果代码
代码语言:html
所属分类:表单美化
代码描述:vue实现移动端手机端问卷调查答题效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- 阻止放大缩小 -->
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/mintui.min.css">
<style>
.content {
background-color: #a2c9d8;
}
.main-list {
position: relative;
}
.problemList {
float: left;
}
.subject {
margin: 1rem 1.5rem;
color: #fff;
}
.subject h3 {
font-size: 0.8rem;
}
.subject p {
font-size: 0.75rem;
margin: 0.3rem 0.75rem;
line-height: 1.2rem;
}
.option {
margin: 0.3rem 0.5757rem;
}
.option li {
margin: 0.3rem 1rem 0.5rem;
width: 6.8rem;
position: relative;
display: inline-flex;
}
.option li.on {
background-color: #44b1c9;
color: #fff;
border: 0.1rem solid #44b1c9;
}
.option li span {
width: 6rem;
text-align: center;
border-radius: 0.5rem;
border: 0.1rem solid #fff;
color: #fff;
font-size: 0.7rem;
padding: 0.3rem;
display: block;
}
.option li .on span {
background-color: #44b1c9;
color: #fff;
border: 0.1rem solid #44b1c9;
}
.btn-groups {
width: 100%;
height: 3rem;
position: fixed;
bottom: 0;
left: 0;
background-color: rgba(162,201,216,.8);
}
.btn-groups-height {
height: 3rem;
}
.submit {
display: block;
float: left;
background-color: #44b1c9;
color: #fff;
width: 6rem;
font-size: 0.7rem;
padding: 0.5rem 0;
text-align: center;
border-radius: 0.15rem;
margin: 0.5rem 2rem;
}
.submit:active {
background: rgba(68,177,201,.5);
}
.btn-groups .prev {
position: absolute;
left: 0;
bottom: 0;
}
.btn-groups .next,.btn-groups .save {
position: absolute;
right: 0;
bottom: 0;
}
input[type='checkbox'] {
width: 100%;
height: 100%;
-webkit-appearance: checkbox;
position: absolute;
opacity: 0;
top: 0;
left: 0;
}
input[type='radio'] {
width: 100%;
height: 100%;
-webkit-appearance: radio;
position: absolute;
opacity: 0;
top: 0;
left: 0;
}
input[type='checkbox']:checked + span,input[type='radio']:checked + span {
background-color: #44b1c9;
color: #fff;
border: 0.1rem solid #44b1c9;
}
/*动画*/
.slide-enter,.slide_back-enter {
position: absolute;
width: 100%;
}
.slide-leave,.slide_back-leave {
position: absolute;
width: 100%;
}
.slide-enter-active,.slide_back-enter-active {
transition: all 0.3s linear;
}
.slide-leave-active {
position: absolute;
transition: all 0.3s linear;
transform: translate(-100%);
}
.slide-enter {
transform: translateX(100%);
}
.slide_back-leave-active {
position: absolute;
transition: all 0.3s linear;
transform: translate(100%);
}
.slide_back-enter {
transform: translateX(-100%);
}
/*修改默认placeholder中的文字 颜色*/
:-moz-placeholder {
color: #9e9e9e;
}
::-moz-placeholder {
color: #9e9e9e;
}
input:-ms-input-placeholder,textarea:-ms-input-placeholder {
color: #9e9e9e;
}
input::-webkit-input-placeholder,textarea::-webkit-input-placeholder {
color: #9e9e9e;
}
/*------- RESPONSIVE -------*/
.el-menu-item.is-active {
background: #f0f0f0;
}
.el-table__header th {
background-color: #f5f7fa;
color: #333;
font-weight: bold;
}
/*app样式*/
#app {
/*background: url(./static/images/bg.png) no-repeat;
background-size: 100% 100%; */
background-color: #f5f5f5;
}
.content {
min-height: 100%;
overflow: hidden;
height: 100vh;
}
.red {
color: red!important;
font-weight: bold;
}
.header .mint-header {
background-color: #44b1c9;
font-size: 0.9rem;
height: 2rem;
}
.header .mint-header-title {
line-height: 2rem;
}
.header .mint-header-button > a:active {
background-color: #.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0