表格优化,图片展示居中
This commit is contained in:
parent
6a39a4c2a2
commit
ad6ad59c01
@ -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; /* 保持比例并覆盖容器 */
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user