diff --git a/web/src/pages/ExamManagement.module.less b/web/src/pages/ExamManagement.module.less index 0f73308..9a97256 100644 --- a/web/src/pages/ExamManagement.module.less +++ b/web/src/pages/ExamManagement.module.less @@ -185,10 +185,14 @@ // 统计数据样式 .examStats { display: flex; - flex-direction: column; + flex-direction: row; // 改为横向排列 + flex-wrap: wrap; // 允许换行 gap: 12px; .statItem { + flex: 1; // 让每个项目平均分配空间 + min-width: 0; // 允许flex收缩 + .valueTag { font-size: 13px; font-weight: 500; @@ -202,6 +206,7 @@ gap: 8px; line-height: 1.4; width: 100%; + justify-content: center; // 内容居中 .anticon { font-size: 14px; @@ -224,6 +229,8 @@ gap: 8px; line-height: 1.4; width: 100%; + justify-content: center; // 内容居中 + width: 100%; .anticon { font-size: 14px;