src/views/answer/components/QuestionAnswerShow.vue
@@ -51,8 +51,8 @@ <!-- 简答、计算、分析 --> <div v-else-if="qType == 5 || qType == 7 || qType == 8"> <div class="q-title" v-html="question.title"/> <div> <el-input v-model="question.answer" type="textarea" rows="5" ></el-input> <div class="rich-text-box"> <div v-html="question.answer"></div> </div> </div> <div class="question-answer-show-item" style="margin-top: 15px"> @@ -185,4 +185,9 @@ color: #606266 } .rich-text-box { border: 1px solid #ccc; /* 添加边框 */ padding: 10px ; /* 添加内边距以提供空间 */ box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); } </style>