Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能将 css-variable 与 String-text 像这样的示例混合:
@define { site_path: http://www.xy.de/;} body{ background:url(@site_path xy.gif); }
谢谢你
CSS 本身不支持变量。有 CSS“编译器”可以做到这一点,生成静态 CSS 文件。
看:
http://lesscss.org/
snd
http://sass-lang.com/