返回 Pixelle-Video
image_long_text.html
根目录 / templates / 1080x1920 / image_long_text.html
1 <!DOCTYPE html>
2 <html lang="zh-CN">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="template:media-width" content="1024">
6 <meta name="template:media-height" content="1024">
7 <meta name="viewport" content="width=1080, height=1920">
8 <title>长文本 - 1080x1920</title>
9 <!-- Google Fonts - 中文字体 -->
10 <link rel="preconnect" href="https://fonts.googleapis.com">
11 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12 <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&family=Noto+Serif+SC:wght@400&display=swap" rel="stylesheet">
13 <style>
14
15 * { margin: 0; padding: 0; box-sizing: border-box; }
16
17 html, body { width: 1080px; height: 1920px; overflow: hidden; }
18
19 body {
20 font-family: 'Noto Sans SC', 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
21 color: #000;
22 position: relative;
23 background: #e8e8e8;
24 background-image: url("{{image}}");
25 background-size: cover;
26 background-position: center;
27 /* 背景模糊效果 */
28 display: flex;
29 flex-direction: column;
30 align-items: center;
31 padding: 0 60px;
32 }
33
34 /* 背景遮罩层 */
35 body::before {
36 content: '';
37 position: absolute;
38 inset: 0;
39 background: rgba(220, 220, 220, 0.75);
40 backdrop-filter: blur(8px);
41 -webkit-backdrop-filter: blur(8px);
42 z-index: 0;
43 }
44
45 /* 顶部标题 */
46 .title {
47 position: relative;
48 z-index: 1;
49 font-size: 110px;
50 font-weight: 900;
51 line-height: 1.2;
52 font-family: 'Noto Sans SC', sans-serif;
53 color: #000;
54 letter-spacing: 0;
55 text-align: center;
56 margin-top: 80px;
57 margin-bottom: 100px;
58 /* 白色描边 */
59 text-shadow: -2px -2px 0 #fff,
60 2px -2px 0 #fff,
61 -2px 2px 0 #fff,
62 2px 2px 0 #fff;
63 }
64
65 /* 正文区域 */
66 .content {
67 width: 100%;
68 position: relative;
69 z-index: 1;
70 font-size: 56px;
71 font-weight: 400;
72 line-height: 4;
73 font-family: 'Noto Sans SC', 'Noto Serif SC', serif;
74 color: #000;
75 text-align: center;
76 letter-spacing: 0.5px;
77 /* 白色描边 */
78 text-shadow: -1px -1px 0 #fff,
79 1px -1px 0 #fff,
80 -1px 1px 0 #fff,
81 1px 1px 0 #fff;
82 /* 保留换行符 */
83 white-space: pre-line;
84 }
85
86 .content p {
87 margin-bottom: 0;
88 }
89
90 .author {
91 position: absolute;
92 font-size: 24px;
93 font-family: 'Liu Jian Mao Cao', 'ZCOOL KuaiLe', cursive;
94 color: #333;
95 bottom: 20px;
96 left: 50%;
97 transform: translateX(-50%);
98 }
99 </style>
100 </head>
101 <body>
102 <!-- 标题 -->
103 <div class="title">{{title}}</div>
104
105 <!-- 正文 -->
106 <div class="content">{{text}}</div>
107
108 <!-- 作者 -->
109 <div class="author">{{author=@Pixelle.AI}}</div>
110 </body>
111 </html>
111 lines HTML