This commit is contained in:
Timi
2026-01-15 15:33:39 +08:00
parent 4022cf56c8
commit 3773c37364
9 changed files with 78 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
## 前端样式约束
- LESS 必须使用层级特性,这是 LESS 最重要的特性
- CSS、LESS 的属性应当尽量缩写,如使用 background 而不是 background-color
- CSS、LESS 的单位优先使用 rem除非 % 或 vw vh 等比例单位
- CSS、LESS 的属性应该按照属性名长度由短到长排序以便维护