diff --git a/sec-beidou/src/main/resources/templates/page/device_overview.html b/sec-beidou/src/main/resources/templates/page/device_overview.html index 5a783634..0c95066f 100644 --- a/sec-beidou/src/main/resources/templates/page/device_overview.html +++ b/sec-beidou/src/main/resources/templates/page/device_overview.html @@ -17,19 +17,53 @@ border-radius: 5px; text-align: center; } - .top-panel > .layui-card-body{ - height: 60px; + + .stats-panel { + height: 100%; + display: flex; + flex-direction: column; } - .top-panel-number{ - line-height:60px; + + .stats-panel > .layui-card-body { + height: auto; + min-height: 60px; + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + } + + .top-panel-number { + /* line-height: 60px; // 删除或注释掉这一行 */ font-size: 30px; - border-right:1px solid #eceff9; + border-right: 1px solid #eceff9; + height: 100%; + display: flex; + align-items: center; + justify-content: center; /* 可选:让数字水平居中 */ } .top-panel-tips{ line-height:30px; font-size: 12px } + .flex-row { + display: flex; + align-items: stretch; + } + .flex-row > .layui-col-xs12, + .flex-row > .layui-col-md6 { + display: flex; + flex-direction: column; + } + .stats-panel .layui-col-xs3 a, + .stats-panel .layui-col-md4 a, + .stats-panel .layui-col-xs3 div a, + .stats-panel .layui-col-md4 div a { + display: block; + margin-bottom: 2px; + } + ul li { list-style: none; } @@ -119,9 +153,9 @@