作者:兄弟465748208_279 | 来源:互联网 | 2023-05-16 16:19
IwouldliketodothefollowingusingSASS:我想使用SASS执行以下操作:width:#{$percent}%;Where$percent
I would like to do the following using SASS:
我想使用SASS执行以下操作:
width: #{$percent}%;
Where $percent
is a variable containing a number. If $percent
is equal to 50, the precompiled CSS would be:
其中$ percent是包含数字的变量。如果$ percent等于50,则预编译的CSS将是:
width: 50%;
What syntax should I use?
我应该使用什么语法?
1 个解决方案