<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>心里测试系统</title>
<style>
.headPart {
width: 100%;
text-align: center;
font-size: 12px;
}
.h1part {
width: 14%;
display: inline-block;
}
.h1part span {
font-size: 16px;
font-weight: bold;
}
.h2part {
width: 68%;
display: inline-block;
}
.h3part {
width: 14%;
display: inline-block;
}
.progress-container,
.progress-container .progress {
height: 10px;
border-radius: 5px;
overflow: hidden;
}
.progress-container {
background-color: rgba(0, 0, 0, .1)
}
.progress-container .progress {
width: 0%;
background-color: #ffde2d;
}
/* 题目区域 ------------------------------*/
.quesPart {}
/* 题目标题 */
.quesPart h1 {
font-size: 18px;
}
/* 选项列表 */
.quesPart .answerList {
list-style: none;
padding: 0px;
}
/* 选项列表 项目 */
.quesPart .answerList li {
border: 1px solid #e3dbdb;
margin: 10px;
/* padding: 10px 20px; */
padding: 10px 20px 10px 20px;
border-radius: 10px;
}
/* 选项列表 项目 选项序号 A/B/C/D */
.quesPart .answerList li .opt {
display: inline-block;
width: 7%;
text-align: left;
}
/* 选项列表 项目 选项内容 */
.quesPart .answerList li .optContent {
display: inline-block;
width: 80%;
}
/* 选项列表 项目 单选按钮 */
.quesPart .answerList li .optRadio {
display: inline-block;
width: 7%;
}
/* 选项列表 项目 单选按钮 伪类选择器 */
input[type='radio']:after {
width: 12px;
height: 12px;
border-radius: 12px;
top: -2px;
left: -1px;
position: relative;
background-color: #fff;
content: '';
display: inline-block;
visibility: visible;
border: 2px solid #ffde2d;
}
/* 选项列表 项目 单选按钮 选中时的 伪类选择器 */
input[type='radio']:checked:after {
width: 12px;
height: 12px;
border-radius: 12px;
top: -2px;
left: -1px;
position: relative;
background-color: #ffde2d;
content: '';
display: inline-block;
visibility: visible;
border: 2px solid white;
}