| | |
| | | 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; |
| | |
| | | .text { |
| | | position: absolute; |
| | | bottom: 300px; |
| | | z-index: 1; |
| | | width: 100%; /* 稍微调整以适应全宽图片 */ |
| | | padding: 0 60px; |
| | | text-align: center; |
| | |
| | | </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"> |
| | |
| | | </div> |
| | | </div> |
| | | </body> |
| | | </html> |
| | | </html> |