diff --git a/src/assets/styles/custom.scss b/src/assets/styles/custom.scss index af49d21..6b428af 100644 --- a/src/assets/styles/custom.scss +++ b/src/assets/styles/custom.scss @@ -235,7 +235,7 @@ // color: #fff; } .table-cell-img-box { - width: 60px; + width: 100%; height: 60px; text-align: center; overflow: hidden; /* 隐藏超出部分 */ @@ -243,8 +243,8 @@ justify-content: center; align-items: center; .table-cell-img { - min-width: 100%; /* 至少撑满宽度 */ - min-height: 100%; /* 至少撑满高度 */ + width: 60px; + height: 60px; object-fit: cover; /* 保持比例并覆盖容器 */ } }