From c805d6a02be738bda431b35a222ab701de2cb74b Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Tue, 12 Aug 2025 17:35:07 +0800 Subject: [PATCH] =?UTF-8?q?style(index):=20=E6=B7=BB=E5=8A=A0=E9=97=B4?= =?UTF-8?q?=E8=B7=9D=E8=A7=86=E5=9B=BE=E5=92=8Cborder-t-1=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在index页面底部添加h-6间距视图 在scss文件中添加border-t-1的注释说明 --- src/pages/index/index.vue | 1 + src/style/index.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 08b1284..dd24520 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -118,5 +118,6 @@ console.log('index') https://wot-design-uni.cn + diff --git a/src/style/index.scss b/src/style/index.scss index 1c98204..eee4e25 100644 --- a/src/style/index.scss +++ b/src/style/index.scss @@ -19,6 +19,7 @@ page { } /* +border-t-1 由于uniapp中无法使用*选择器,使用魔法代替*,加上此规则可以简化border与divide的使用,并提升布局的兼容性 1. 防止padding和border影响元素宽度。 (https://github.com/mozdevs/cssremedy/issues/4) 2. 允许仅通过添加边框宽度来向元素添加边框。 (https://github.com/tailwindcss/tailwindcss/pull/116)