From cc5582b71914036e24f8e75c964e320fe64e84be Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Thu, 14 May 2026 19:47:35 +0800
Subject: [PATCH] 文艺短视频:将所有模版改为兼容传入视频的格式
---
aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html
index 98fd049..576689e 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_full.html
@@ -28,15 +28,21 @@
position: relative;
width: 100%;
height: 100%;
- background-image: url("{{image}}");
- background-size: cover;
- background-position: center;
z-index: 0;
+ overflow: hidden;
+ }
+
+ .media-bg {
+ position: absolute;
+ inset: 0;
+ z-index: 0;
+ overflow: hidden;
}
.title {
position: absolute;
top: 300px;
+ z-index: 1;
width: 100%;
text-align: center;
font-size: 92px;
@@ -56,6 +62,7 @@
.text {
position: absolute;
bottom: 300px;
+ z-index: 1;
width: 100%; /* 稍微调整以适应全宽图片 */
padding: 0 60px;
text-align: center;
@@ -148,8 +155,9 @@
</head>
<body>
<div class="bg">
- <div class="title">{{title}}</div>
- <div class="text">{{text}}</div>
+ <div class="media-bg">{{media}}</div>
+ <div class="title">{{title}}</div>
+ <div class="text">{{text}}</div>
</div>
<div class="footer">
<div class="author">
@@ -170,4 +178,4 @@
</div>
</div>
</body>
-</html>
\ No newline at end of file
+</html>
--
Gitblit v1.8.0