0

我怎样才能将 css-variable 与 String-text 像这样的示例混合:

@define {   site_path: http://www.xy.de/;}

body{
background:url(@site_path xy.gif);
}

谢谢你

4

1 回答 1

2

CSS 本身不支持变量。有 CSS“编译器”可以做到这一点,生成静态 CSS 文件。

看:

http://lesscss.org/

snd

http://sass-lang.com/

于 2013-04-02T13:54:26.400 回答