vue实现MBTI 性格测试代码
代码语言:html
所属分类:其他
代码描述:vue实现MBTI 性格测试代码,通过回答问题来测试你是什么性格。
下面为部分代码预览,完整代码请点击下载或在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>MBTI 性格测试</title>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue3.2.22.js"></script>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: #f4f7f9;
color: #333;
line-height: 1.6;
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
#app {
background: #fff;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
padding: 40px;
max-width: 800px;
width: 100%;
transition: all 0.3s ease;
}
h1, h2 {
text-align: center;
color: #2c3e50;
}
.question-container {
margin-bottom: 25px;
}
.question {
font-size: 1.2em;
margin-bottom: 15px;
}
.options {
display: flex;
flex-direction: column;
}
.option {
background: #f9f9f9;
border: 1px solid #eee;
border-radius: 8px;
padding: 15px;
margin-bottom: 10px;
cursor: pointer;
transition: all 0.2s ease;
}
.option:hover {
background: #e9ecef;
}
.option.selected {
background-color: #007bff;
color: white;
border-color: #007bff;
}
.progress-bar {
width: 100%;
background-color: #e9ecef;
border-radius: 5px;
margin-bottom: 20px;
}
.progress {
height: 10px;
background-color: #007bff;
border-radius: 5px;
transition: width 0.3s ease;
}
.button-container {
text-align: center;
margin-top: 20px;
}.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0