From 4a558170ad241f819e3964ccea24f068f601ca35 Mon Sep 17 00:00:00 2001 From: li <125846662@qq.com> Date: Fri, 14 Nov 2025 11:31:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A8=A1=E7=89=88=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E5=AD=97=E5=8F=B7=E6=A0=B9=E6=8D=AE=E6=96=87=E5=AD=97=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E5=8A=A8=E6=80=81=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/1080x1920/video_default.html | 149 ++++++++++++++++++++++++- 1 file changed, 146 insertions(+), 3 deletions(-) diff --git a/templates/1080x1920/video_default.html b/templates/1080x1920/video_default.html index d686000..8c0ed33 100644 --- a/templates/1080x1920/video_default.html +++ b/templates/1080x1920/video_default.html @@ -59,13 +59,13 @@ top: calc(50% - 607px / 2 - 130px); left: 50%; transform: translateX(-50%); - max-width: 900px; - width: 900px; - text-align: center; z-index: 2; } .video-title { + width: 900px; + text-align: center; + /* 初始字体大小,JavaScript 会根据文本长度自动调整 */ font-size: 72px; font-weight: 700; color: #ffffff; @@ -73,6 +73,10 @@ letter-spacing: 3px; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); margin-bottom: 20px; + /* 确保文本不会溢出 */ + word-wrap: break-word; + overflow-wrap: break-word; + white-space: nowrap; } /* 字幕区域 - 对齐视频底部 */ @@ -181,5 +185,144 @@ + + \ No newline at end of file