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