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_book.html | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html b/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html
index 5ba27b0..7a6a62b 100644
--- a/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html
+++ b/aigc-director/aigc-claw/backend/templates/1080x1920/image_book.html
@@ -21,9 +21,15 @@
color: #fff;
position: relative;
background: #1a1a1a;
- background-image: url("{{image}}");
- background-size: cover;
- background-position: center bottom 400px;
+ }
+
+ .media-bg {
+ position: absolute;
+ inset: 0;
+ z-index: 0;
+ overflow: hidden;
+ transform: translateY(-400px);
+ height: calc(100% + 400px);
}
/* 顶部区域 */
@@ -34,6 +40,7 @@
transform: translateX(-50%);
text-align: center;
width: 90%;
+ z-index: 1;
}
.image {
@@ -77,6 +84,7 @@
transform: translateX(-50%);
text-align: center;
width: 90%;
+ z-index: 1;
}
.main-text {
@@ -102,6 +110,8 @@
</style>
</head>
<body>
+ <div class="media-bg">{{media}}</div>
+
<!-- 顶部标题区 -->
<div class="top-section">
<div class="title">{{title}}</div>
@@ -116,4 +126,4 @@
<div class="author">{{author=HITsz-TMG}}</div>
</div>
</body>
-</html>
\ No newline at end of file
+</html>
--
Gitblit v1.8.0