📜  更少的变量与 css 变量 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:28.897000             🧑  作者: Mango

代码示例1
They are very different, main differences:
- CSS vars cascade
- CSS vars trigger repaint on change
- CSS vars can be manipulated with JS
- Less vars are more lightweight and will work regardless of browser