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.
我试图在 SASS 中保存一个选择器以便以后更容易地引用,但是我得到一个语法错误。
这是我正在尝试做的事情:
$icon: [class*="icon"];
如果要将其用作变量,则需要将其转换为字符串:
$icon: '[class*="icon"]'; #{$icon} { // stuff }