From 2868a384935a6d59f267f7d69327d3fe6a8956c6 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sat, 22 Apr 2023 10:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AB=A0=E8=8A=82=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E9=94=99=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/chapter.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ui/chapter.vue b/src/ui/chapter.vue index 4f4ac0d..291e920 100644 --- a/src/ui/chapter.vue +++ b/src/ui/chapter.vue @@ -41,8 +41,6 @@ onMounted(async () => { can.style.width = `${window.innerWidth}px`; can.style.height = `${window.innerHeight}px`; text.style.left = `${w + 10}px`; - text.style.top = `47.5vh`; - text.style.height = `5vh`; text.style.width = `${textWidth}px`; let soundPlayed = false; @@ -128,16 +126,19 @@ onMounted(async () => { left: 0; top: 0; user-select: none; + display: flex; + align-items: center; } #chapter-back { + position: fixed; width: 100%; height: 100%; } #chapter-text { - position: fixed; - font-family: 'scroll'; + position: relative; + font-family: 'normal'; font-size: 5vh; text-shadow: 0px 0px 5px #fff; }