| | |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-image: url("{{image}}"); |
| | | background-size: cover; |
| | | background-position: center; |
| | | filter: blur(24px) brightness(0.9); |
| | | transform: scale(1.1); |
| | | z-index: 0; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | /* 顶部标题区 */ |
| | |
| | | |
| | | .image-box { position: relative; width: 100%; height: 100%; } |
| | | |
| | | .image-box img { |
| | | .image-box .template-media { |
| | | width: 100%; |
| | | height: 100%; |
| | | object-fit: cover; /* 改为 cover 填满宽度 */ |
| | |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="bg"></div> |
| | | <div class="bg">{{media}}</div> |
| | | <div class="top"> |
| | | <div class="title">{{title}}</div> |
| | | </div> |
| | | |
| | | <div class="image-center"> |
| | | <div class="image-box"> |
| | | <img src="{{image}}" alt="内容图片"> |
| | | {{media}} |
| | | <div class="caption">{{text}}</div> |
| | | </div> |
| | | </div> |