Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sass 如何在Mixin中转义参数?_Sass_Mixins - Fatal编程技术网

Sass 如何在Mixin中转义参数?

Sass 如何在Mixin中转义参数?,sass,mixins,Sass,Mixins,如果我只想为$b或$b和$c声明值,我该怎么做呢?可以使用命名参数 很 完美!!我在找它。 =elements($a: 1, $b: 2, $c: 3) =els($a: 1, $b: 2, $c: 3) height: $a + px width: #{$b}px content: $c .cool +els .things +els($a: 100) .stuff +els($c: 29) .other +els($c: 29, $b: 54)

如果我只想为
$b
$b和$c
声明值,我该怎么做呢?

可以使用命名参数


很 完美!!我在找它。
=elements($a: 1, $b: 2, $c: 3)
=els($a: 1, $b: 2, $c: 3)
  height: $a + px
  width: #{$b}px
  content: $c

.cool
  +els

.things
  +els($a: 100)

.stuff
  +els($c: 29)

.other
  +els($c: 29, $b: 54)