返回 Pixelle-Video
image_minimal_framed.html
根目录 / templates / 1080x1080 / image_minimal_framed.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=1080">
8 <title>极简边框风格 - 1080x1080</title>
9 <style>
10 * { margin: 0; padding: 0; box-sizing: border-box; }
11
12 html, body { width: 1080px; height: 1080px; overflow: hidden; }
13
14 body {
15 font-family: 'PingFang SC', 'Source Han Sans', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
16 background: #fafafa;
17 color: #1a1a1a;
18 display: flex;
19 flex-direction: column;
20 padding: 100px 80px;
21 }
22
23 /* 顶部标题 - 极简风格 */
24 .header {
25 text-align: center;
26 margin-bottom: 60px;
27 }
28
29 .title {
30 font-size: 56px;
31 font-weight: 300;
32 line-height: 1.3;
33 color: #2d3436;
34 letter-spacing: 3px;
35 }
36
37 /* 图片区域 - 细边框,大留白 */
38 .image-section {
39 flex: 1;
40 display: flex;
41 align-items: center;
42 justify-content: center;
43 margin: 30px 0;
44 min-height: 0;
45 }
46
47 .image-container {
48 width: 100%;
49 max-width: 720px;
50 height: 100%;
51 max-height: 100%;
52 border: 2px solid #2d3436;
53 background: #fff;
54 padding: 8px;
55 box-shadow: 0 4px 20px rgba(0,0,0,0.08);
56 }
57
58 .image-container img {
59 width: 100%;
60 height: 100%;
61 object-fit: contain;
62 display: block;
63 }
64
65 /* 底部文字 - 极简 */
66 .footer {
67 text-align: center;
68 margin-top: 50px;
69 }
70
71 .text {
72 font-size: 28px;
73 font-weight: 300;
74 line-height: 1.6;
75 color: #636e72;
76 letter-spacing: 1px;
77 max-width: 700px;
78 margin: 0 auto;
79 }
80
81 @media (max-width: 1080px) {
82 .title { font-size: 50px; }
83 .text { font-size: 26px; }
84 }
85 </style>
86 </head>
87 <body>
88 <div class="header">
89 <div class="title">{{title}}</div>
90 </div>
91
92 <div class="image-section">
93 <div class="image-container">
94 <img src="{{image}}" alt="内容图片">
95 </div>
96 </div>
97
98 <div class="footer">
99 <div class="text">{{text}}</div>
100 </div>
101 </body>
102 </html>
103
103 lines HTML