vue+json实现可配置书籍问卷表单代码
代码语言:html
所属分类:布局界面
代码描述:vue+json实现可配置书籍问卷表单代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JSON配置问答表单</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap Icons -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
<!-- Vue.js -->
<script src="https://cdn.jsdelivr.net/npm/vue@3.2.47/dist/vue.global.min.js"></script>
<style>
:root {
--primary-color: #1a73e8;
--body-bg: #f8f9fa;
--card-bg: #ffffff;
--text-color: #333333;
--muted-color: #6c757d;
--border-radius: 10px;
}
body {
font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
background-color: var(--body-bg);
color: var(--text-color);
padding: 20px 0;
}
.container {
max-width: 600px;
}
.form-card {
background-color: var(--card-bg);
border-radius: var(--border-radius);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
padding: 30px;
margin-bottom: 20px;
}
.form-title {
font-size: 1.5rem;
font-weight: bold;
margin-bottom: 20px;
text-align: center;
}
.form-subtitle {
font-size: 1.1rem;
color: var(--muted-color);
margin-bottom: 30px;
text-align: center;
}
.question-title {
font-size: 1.1rem;
font-weight: 500;
margin-bottom: 15px;
}
.option-item {
background-color: #f5f5f5;
border-radius: 50px;
padding: 10px 20px;
margin-bottom: 10px;
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid transparent;
}.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0