学习 Less 前的一些问题?
- 什么是 Less,解决什么问题?
- CSS 哪里不好了?
- Less 的背景?
- 趋势和未来,是否值得深入学习?
- ...
Variables
变量的功能;@width: 10px
Mixins
Mixins are a way of including ("mixing in") a bunch of properties from one rule-set into another rule-set.
引用一个完整的实例
Nesting
嵌套,类似 HTML 的嵌套
Nested At-Rules and Bubbling
css @Rules 嵌套、冒泡
Operations
加减乘除 运算符的支持
Escaping
转义,支持任意字符串作为属性或者变量
Functions
很多内建函数 Functions
Namespace Accessors
命名空间,对象属性引用
Maps
k-v 引用 []
Scope
作用域
Sass Stylus 又是些什么东西?
Sass is the most mature, stable, and powerful professional grade CSS extension language in the world.
富于表现力、动态的、健壮的 CSS