This commit is contained in:
1 parent
00917b56d1
commit
a4c38453f0
1 file changed
+6
-8
+6
-8
@@ -1391,20 +1391,18 @@ footer section p:first-child {
|
|||||||
/* Featured Image Styles */
|
/* Featured Image Styles */
|
||||||
.post-cover {
|
.post-cover {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200px;
|
height: auto;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
background-color: var(--border-color); /* 添加一点背景色填补空白区域 */
|
text-align: center;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-cover img {
|
.post-cover img {
|
||||||
width: 100%;
|
max-width: 100%;
|
||||||
height: 100%;
|
height: auto;
|
||||||
object-fit: contain; /* 保证图片显示完整不被裁剪 */
|
max-height: 260px;
|
||||||
display: block;
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user