less入门(leaner Style Sheets)
简介
Less 是一门 css 扩展语言,增加了变量、Mixin、函数等特性,使 CSS 更易维护和扩展。
Less 可以运行在 Node 或浏览器端。很容易学,但需要一定的编程基础。
变量
变数
在一个位置控制常用值
@width : 30px;
@height : @width + 10px;
#header {
width:@width;
height:@height;
}
编译为:
...
原创
2019-11-18 21:04:55 ·
311 阅读 ·
0 评论