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.
我想写这个mixin:
@mixin top_a($sep-a: 2.5) { padding-top: $sep-a + %;}
但不幸的是,这会引发错误。如何正确地将百分比添加到值中?
为什么不简单地乘以1%?
1%
padding-top: $sep-a * 1%;