Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

说一下 Css 预处理器,Less 带来的好处? #143

Open
lgwebdream opened this issue Jul 6, 2020 · 2 comments
Open

说一下 Css 预处理器,Less 带来的好处? #143

lgwebdream opened this issue Jul 6, 2020 · 2 comments
Labels
Css teach_tag 头条 company

Comments

@lgwebdream
Copy link
Owner

No description provided.

@lgwebdream lgwebdream added Css teach_tag 头条 company labels Jul 6, 2020
@lgwebdream
Copy link
Owner Author

扫描下方二维码,获取答案以及详细解析,同时可解锁800+道前端面试题。

@UncleSamJC
Copy link

CSS有具体以下几个缺点:
-->语法不够强大,比如无法嵌套书写,导致模块化开发中需要书写很多重复的选择器;
-->没有变量和合理的样式复用机制,使得逻辑上相关的属性值必须以字面量的形式重复输出,导致难以维护。
这就导致了我们在工作中无端增加了许多工作量。而使用CSS预处理器,提供 CSS 缺失的样式层复用机制、减少冗余代码,提高样式代码的可维护性。大大提高了我们的开发效率。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Css teach_tag 头条 company
Projects
None yet
Development

No branches or pull requests

2 participants