From a92b8dfedf24d9e3187de70408be30a7532f5383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Wed, 21 Feb 2024 10:08:15 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20index.scss=20=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/style/index.scss | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/style/index.scss b/src/style/index.scss index 76f998f..15ac3dd 100644 --- a/src/style/index.scss +++ b/src/style/index.scss @@ -1,13 +1,12 @@ .test { - margin-top: 4px; - - @apply mt-4; - - // 上面2个方式都会出现问题(如截图所示 issue.png),建议不在这个全局文件写宽高大小的变量 + // 可以通过 @apply 多个样式封装整体样式 + @apply mt-4 ml-4; + padding-top: 4px; color: red; } +// 全局字体引用 DEMO // @font-face { // font-family: TiTi; // src: url('./fonts/PangMenZhengDaoBiaoTiTi-1.ttf');