File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -201,18 +201,22 @@ a, a:hover {
201201
202202/* 幻灯片 */
203203.carousel-item {
204- max-height : 17.5 rem ;
204+ max-height : 25 rem ;
205205}
206206
207207.carousel_link {
208208 color : # fff ;
209209 text-decoration : none;
210210 display : inline-block;
211+ width : 100% ;
212+ height : 25rem ;
213+ overflow : hidden;
211214}
212215
213216.carousel_link img {
214217 width : 100% ;
215218 height : 100% ;
219+ object-fit : cover;
216220}
217221
218222.carousel-inner {
Original file line number Diff line number Diff line change 11<?php if (!defined ('__TYPECHO_ROOT_DIR__ ' )) exit ; ?>
2- <section class="article-info <?php if (!$ this ->fields ->banner ){echo 'no-cover ' ;}?> "" >
2+ <section class="article-info <?php if (!$ this ->fields ->banner ){echo 'no-cover ' ;}?> ">
33 <?php if ($ this ->fields ->banner ):?>
44 <div class="article-cover-inner">
55 <img src="<?= $ this ->fields ->banner ()?> " alt="cover">
You can’t perform that action at this time.
0 commit comments