From 73204d05cef1cb8be44ff8b1e44114dee0cfb455 Mon Sep 17 00:00:00 2001 From: liuying <1427574514@qq.com> Date: 周五, 01 11月 2024 19:50:36 +0800 Subject: [PATCH] 细节 --- yiqi_screen/src/components/Content.vue | 33 +++++++++++++++++++-------------- 1 files changed, 19 insertions(+), 14 deletions(-) diff --git a/yiqi_screen/src/components/Content.vue b/yiqi_screen/src/components/Content.vue index 4f2a701..e657937 100644 --- a/yiqi_screen/src/components/Content.vue +++ b/yiqi_screen/src/components/Content.vue @@ -339,6 +339,9 @@ position: relative; .title { + display: flex; + vertical-align: middle; + align-items: center; color: #41c7de; font-size: 0.38rem; font-weight: 700; @@ -348,10 +351,8 @@ transform: translate(-50%); letter-spacing: 8px; .imgTitle{ - width: .5rem; - position: absolute; - /* top: 0.08rem; */ - left: -0.7rem; + width: 0.7rem; + margin-right: .2rem; } } @@ -542,20 +543,24 @@ .pie-label-left { position: absolute; - bottom: 0.1rem; - left: 0.7rem; - color: #fff; - font-size: 0.2rem; - font-weight: 300; + bottom: 0.1rem; + left: 0.1rem; + color: #fff; + font-size: 0.2rem; + font-weight: 300; + width: 44%; + text-align: center; } .pie-label-right { position: absolute; - bottom: 0.1rem; - right: 0.7rem; - color: #fff; - font-size: 0.2rem; - font-weight: 300; + bottom: 0.1rem; + right: 0.3rem; + color: #fff; + font-size: 0.2rem; + font-weight: 300; + width: 44%; + text-align: center; } } -- Gitblit v1.9.3