发布于 2014-10-26 23:57:20 | 160 次阅读 | 评论: 0 | 来源: 网友投递
Less CSS CSS预处理器
Less 是一个Css 预编译器,意思指的是它可以扩展Css语言,添加功能如允许变量(variables),混合(mixins),函数(functions) 和许多其他的技术,让你的Css更具维护性,主题性,扩展性。
Less CSS 2.0.0-b2 发布,此版本现已提供下载,更新内容如下:
Imports are now sequenced and so are consistent (previously some complex projects might end up with occasional different orderings)
Imports with variables are better supported - variables can be specified in sub imports
Support for rebeccapurple
Browser can now accept options as attributes on the script tag and the link tags e.g. <script data-verbose="false" src="less.js"...
adding a .less file extension is done in the abstract file manager so it the behaviour can be overridden by certain file managers
Fixed a bug where unquoted urls beginning //
e.g. url(//file/file.less)
would be incorrectly interpreted (bug introduced in b-1)
lessc plugins can be a function, used as a constructor as well as an object - this to allow the plugin more flexibility to be used programattically
Less CSS 是一个使用广泛的 CSS 预处理器,通过简单的语法和变量对 CSS 进行扩展,可减少很多 CSS 的代码量。
Less 是一个Css 预编译器,意思指的是它可以扩展Css语言,添加功能如允许变量(variables),混合(mixins),函数(functions) 和许多其他的技术,让你的Css更具维护性,主题性,扩展性。
LESS 将 CSS 赋予了动态语言的特性,如 变量, 继承, 运算, 函数. LESS 既可以在 客户端 上运行 (支持IE 6+, Webkit, Firefox),也可一在服务端运行 (借助 Node.js).