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?我们正在尝试传递 {if} 语句,但不希望在最终 CSS 中包含注释标签:
{if something} body { color: red; } {/if}
现在我有编译错误。
使用插值 #{}和引号的组合' ':
#{}
' '
#{'{if something}'} body { color: red; } #{'{/if}'}