微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

css – Sass有Compass而LESS没有… LESS语言不够健壮?

最近我读了 http://css-tricks.com/sass-vs-less/帖子和一段引起我的注意,与CSS3帮助有关

So what this comes down to is: Sass has Compass and LESS does not. But
it goes deeper than that. The attempts at creating a real robust
project like Compass for LESS haven’t succeeded because the LESS
language isn’t robust enough to do it properly. Winner: Sass

一个强大的解释说:

Sass has actual logical and looping operators in the language.
if/then/else statements,for loops,while loops,and each loops. No
tricks,just proper programming. While guarded mixins are a pretty
cool,natural concept,language robustness goes to Sass. This language
robustness is what makes Compass possible.

我对这种肯定感到不安,并对此表示怀疑.这几天几乎所有东西都可以使用Javascript(LESS编译器).

题:
可以在LESS之上构建一个类似Compass的工具,或者语言(JS)不够健壮,就像帖子所说的那样?

注意:
答案应该集中在这一个事实,即LESS足够强大或不够强大,无法构建类似指南针的工具,而不是您在主题中的个人偏好.
关注为什么(语言事实)你做那种肯定.

解决方法

LESS也有(稳健性)

lolmaus的回答暗示LESS与SASS没有相同的东西,所以为了模仿他的答案,让我简单回答如下:

LESS至少有一个指南针像compless正在进行中,以及语义网格系统(lessframework,semantic grid,fractionless),媒体查询操作工具(less media query solutions),各种内置数学和颜色工具,样式库(Bootstrap,3L,less elements,LESS hat,Clearless)等

简而言之,稳健性与它无关.两者都足够强大. SASS与Compass可能已经得到了更多的关注(更多的开发完成),但是SASS和LESS都有很多支持者和几乎并行的功能.

原文地址:https://www.jb51.cc/css/215483.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。