image_minimal_framed.html 2.6 KB

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