story#5314 照片显示比例失调的问题需要优化

This commit is contained in:
2025-04-02 13:23:18 +08:00
parent ba1cd9fcac
commit 7b7e926f8a
2 changed files with 6 additions and 0 deletions

View File

@ -379,6 +379,8 @@ export default {
.swipeImg{
width: 100%;
height: 100%;
object-fit: cover; /* 保持比例填充容器,裁剪多余部分 */
object-position: center; /* 居中显示 */
}
::v-deep .el-carousel__button {
height: 0.15rem !important;

View File

@ -518,6 +518,10 @@ export default {
letter-spacing: 5px;
background-color: #6C81CD;
}
.img {
object-fit: cover; /* 保持比例填充容器,裁剪多余部分 */
object-position: center; /* 居中显示 */
}
}
.right{
.title{