From e82e67f5b3de9430bcfb67b57c3de968a0ca641e Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Sun, 5 Feb 2023 23:58:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=83=E7=B4=A0=E5=85=89=E6=A0=87?= =?UTF-8?q?=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 2f6a434af95e0d06c2f15f3bfc54b90f6ca8cb44 --- src/styles/global.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/styles/global.scss b/src/styles/global.scss index 2d546121..67450f0f 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -4,6 +4,11 @@ body, height: 100%; } +// 隐藏元素光标 +label,span, p,li,img,a{ + caret-color: transparent; +} + svg { vertical-align: -0.15em; //因icon大小被设置为和字体大小一致,而span等标签的下边缘会和字体的基线对齐,故需设置一个往下的偏移比例,来纠正视觉上的未对齐效果 }