front-end-interview-handbook/packages/quiz/questions/describe-what-you-like-and-.../zh-CN.mdx

14 lines
601 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 描述您喜欢和不喜欢使用的 CSS 预处理器。
---
## 喜欢
- 主要是[“使用CSS preprocessors的优点/缺点?”]\(/questions/quiz/what-are-the-favourges-adversus of using-css-preprocesss) 中提到的优势。
- Less 是用 JavaScript 写的,它在 Nodejs 中很好用。
## 不喜欢
- Sass 依赖 `node-sass`,它是一个 C++ 写的 LibSass的绑定。 当在 Node.js 版本间切换时,必须经常重新编译库。
- 在Less中变量名前缀是`@`, 它可能与原生的 CSS 关键字混淆, 例如`@media`, `@import` 和 `@font-face` 规则。