diff --git a/src/views/basic/askTestQuestion/components/analysisDialog.vue b/src/views/basic/askTestQuestion/components/analysisDialog.vue index 62e13b9..61271a0 100644 --- a/src/views/basic/askTestQuestion/components/analysisDialog.vue +++ b/src/views/basic/askTestQuestion/components/analysisDialog.vue @@ -60,7 +60,10 @@ export default { const body = iframeRef.contentWindow.document.body; body.style.overflowX = "hidden"; // 不允许出现横向滚动条 const height = body.scrollHeight; // 获取内容的高度 - iframeRef.style.height = `${height + 20}px`; // 设置 iframe 的高度 + console.log(height, "height"); + console.log(body, "body"); + + iframeRef.style.height = `${height}px`; // 设置 iframe 的高度 // 获取第一个P标签 const firstP = doc.getElementsByTagName("p")[0]; // 或者修改第一个 < p > 标签的内容; diff --git a/src/views/basic/askTestQuestion/wrongQuestion.vue b/src/views/basic/askTestQuestion/wrongQuestion.vue index 45d4124..80060fd 100644 --- a/src/views/basic/askTestQuestion/wrongQuestion.vue +++ b/src/views/basic/askTestQuestion/wrongQuestion.vue @@ -95,7 +95,10 @@ 题型: + >题型: