CSS继承,别名等酷的东西 [英] CSS inheritance, aliases and other cool stuff

查看:220
本文介绍了CSS继承,别名等酷的东西的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一天,我随机浏览网页,我发现一些程序,让你写CSS别名和其他很酷的东西(我现在不记得了)。

The other day I was randomly browsing the web and I found some program that lets you write CSS aliases and other cool stuff (which I can't remember right now).

例如,我记得你可以这样做:

As an example, I remember you can do something like this:

.myclass
{
   background-color: red;
   greenfont
}

其中greenfont被定义为别名somekind of别名

where greenfont was defined somewhere else as somekind of alias

greenfont { color: green; }

然后程序将根据别名和其他东西生成结果的CSS。

Then the program will generate the resulting CSS based on the alias and other stuff.

有没有人用过这个?或者我梦见了吗?我现在找不到:P

Does anyone has used this? Or did I dreamed about it? I cannot find it now :P

推荐答案

很抱歉回复这样一个旧线程,但另一个检查将是LESS
http://lesscss.org

Sorry to reply to such an old thread but another one to check out would be LESS http://lesscss.org

这篇关于CSS继承,别名等酷的东西的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆