【发布时间】:2019-06-13 12:29:11
【问题描述】:
我想从嵌套映射中生成一些 CSS 代码,但我可以访问参数和值。我已经把地图贴在这里了。我想上不同的课。它们应该是这样的。
.is-fluid {
width: 100%;
height: auto;
border-radius: 0;
}
等等……
我尝试了不同的方法,但无法运行。 这甚至可能吗?怎么做?
$images: (
styles: (
fluid: (
'width': 100%,
'height': auto,
'border-radius': 0
),
rounded: (
'width': auto,
'height': auto,
'border-radius': .5rem
),
circled: (
'width': auto,
'height': auto,
'border-radius': 50%
)
)
)
【问题讨论】:
标签: sass