story#5314 照片显示比例失调的问题需要优化
This commit is contained in:
@ -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;
|
||||
|
@ -518,6 +518,10 @@ export default {
|
||||
letter-spacing: 5px;
|
||||
background-color: #6C81CD;
|
||||
}
|
||||
.img {
|
||||
object-fit: cover; /* 保持比例填充容器,裁剪多余部分 */
|
||||
object-position: center; /* 居中显示 */
|
||||
}
|
||||
}
|
||||
.right{
|
||||
.title{
|
||||
|
Reference in New Issue
Block a user