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.
我有一个名为button_class. 现在一个按钮或一个输入标签可以有这个类。现在使用 sass,如果输入了标签名称,我需要在 css 中添加一些内容。像这样:
button_class
.button_class { display: inline-block; /* something like this */ & input { padding: 2px; } }
如你所料,我不知道该怎么做。
SASS 语法还不允许这样做。:(
&input给
&input
"input" 只能用在复合选择器的开头