From 6ac7eaad4072ed906877cc21e30d77b240d584cc Mon Sep 17 00:00:00 2001 From: oustr Date: Wed, 2 Aug 2023 23:07:57 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=A7=84=E8=8C=83=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comments | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/comments b/comments index 733cba51..fd08ab08 100644 --- a/comments +++ b/comments @@ -1,3 +1,10 @@ +代码规范: + +长宽单位统一用vw(高度上的也是vw,字号也是,都以屏幕宽度为准),不用rpx(不是原生的,经常容易标红报错) + 用aspectFill可以使得在长宽固定的情况下 图片居中且填满整个长宽 多余的会被隐藏起来 不会让图片变形 + + + uni.setStorageSync(KEY,DATA) uni.getStorageSync(KEY)