- Updated styles for the question creation page, including margin adjustments and new question type buttons (single choice, multiple choice, text). - Refactored the myQuestion page to use a table layout for better organization of questionnaire data, including new styles for table rows and hover effects. - Improved padding and positioning for various elements to enhance overall user experience.
170 lines
4.6 KiB
HTML
170 lines
4.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>创建问卷</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
background: #C3C3C3;
|
|
}
|
|
header {
|
|
background-color: #CF9A30;
|
|
color: #EEE8E4;
|
|
text-align: start;
|
|
padding: 20px;
|
|
display: flex;
|
|
}
|
|
main {
|
|
padding: 30px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.box {
|
|
width: 90%;
|
|
padding: 14px;
|
|
background-color: #EBEBEB;
|
|
box-shadow: 1px 2px 2px rgba(0,0,0,0.4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
}
|
|
a{
|
|
text-decoration: none;
|
|
}
|
|
.quesen{
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
line-height: 24px;
|
|
color: #CF9A30;
|
|
border-radius: 50px;
|
|
padding-top: 5px;
|
|
background-color: #EBEBEB;
|
|
position: absolute;
|
|
font-style: normal;
|
|
top: 14px;
|
|
left: 60px;
|
|
}
|
|
.title{
|
|
margin-left: 80px;
|
|
font-size: 24px;
|
|
line-height: 20px;
|
|
font-weight: bold;
|
|
margin-right: 60px;
|
|
}
|
|
.nav-bar{
|
|
a{
|
|
line-height: 20px;
|
|
font-size: 20px;
|
|
color: #EEE8E4;
|
|
border: 2px solid #c78501;
|
|
padding: 2px;
|
|
}
|
|
}
|
|
|
|
.question-title{
|
|
width: 100%;
|
|
height: 68px;
|
|
text-align: center;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: #000;
|
|
background: #CEEACA;
|
|
box-shadow: 1px 2px 2px rgba(0,0,0,0.4);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.question-title:hover{
|
|
background: #FCFF00;
|
|
}
|
|
.but{
|
|
width: 99%;
|
|
height: 40px;
|
|
background-color: #D3D3D3;
|
|
margin-bottom: 25px;
|
|
text-align: center;
|
|
line-height: 40px;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: #000000;
|
|
padding: 10px 0 50px 0;
|
|
}
|
|
hr{
|
|
width: 100%;
|
|
}
|
|
.ctrl-bar{
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 20px 0;
|
|
}
|
|
.endtime{
|
|
margin-left: 20%;
|
|
span{
|
|
margin-right: 16px;
|
|
}
|
|
}
|
|
.pushbut{
|
|
margin-right: 20%;
|
|
button{
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
.quetype{
|
|
margin-top: 20px;
|
|
padding: 20px 20%;
|
|
width: 99%;
|
|
border: 1px solid #b3b3b3;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
button {
|
|
font-size: 16px;
|
|
line-height: 16px;
|
|
padding: 1px 25px;
|
|
};
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<i class="quesen">?</i>
|
|
<div class="title">问卷管理</div>
|
|
<div class="nav-bar">
|
|
<a href="#">我的问卷</a>
|
|
</div>
|
|
</header>
|
|
<main>
|
|
<div class="box">
|
|
<input class="question-title" type="text" value="请在这里输入问卷的标题">
|
|
<div class="quetype">
|
|
<button><img style="width: 16px; height: 16px;" src="/img/radio.svg" alt="">单选题</button>
|
|
<button><img style="width: 16px; height: 16px;" src="/img/checkbox.svg" alt="">多选题</button>
|
|
<button><img style="width: 16px; height: 16px;" src="/img/text.svg" alt="">文本题</button>
|
|
</div>
|
|
<a href="" class="but">+ 添加问题</a>
|
|
<hr>
|
|
<div class="ctrl-bar">
|
|
<div class="endtime">
|
|
<span>问卷截止日期</span>
|
|
<input type="date" name="endtime" id="endtime">
|
|
</div>
|
|
<div class="pushbut">
|
|
<button>保存问卷</button>
|
|
<button>发布问卷</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html> |