From 4eb6ec9227fbf5adbfc9e791c6285371c6dd7f80 Mon Sep 17 00:00:00 2001 From: flyflydogdog <939431620@qq.com> Date: Mon, 20 Nov 2023 15:59:37 +0800 Subject: [PATCH] Update less-syntax.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 📝 typo --- docs/engineering/preprocessors/less-syntax.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/engineering/preprocessors/less-syntax.md b/docs/engineering/preprocessors/less-syntax.md index 052bf82..57b9c53 100644 --- a/docs/engineering/preprocessors/less-syntax.md +++ b/docs/engineering/preprocessors/less-syntax.md @@ -320,7 +320,9 @@ button:hover { width: 0; } -.max(10px); +.max { + .max(10px); +} // 编译后 .max { @@ -360,7 +362,7 @@ Less 中混合调用自身,即可形成循环。 .loop(@counter - 1); // 每次调用时产生的样式代码 - width: (10px - * @counter); + width: (10px * @counter); } .container {