在less中可以
.full() {
width: 100%;
height: 100%;
}
#body {
.full();
}效果等同于
#body {
width: 100%;
height: 100%;
}sass中有类似的写法吗?@function好像只能做值处理?
在less中可以
.full() {
width: 100%;
height: 100%;
}
#body {
.full();
}效果等同于
#body {
width: 100%;
height: 100%;
}sass中有类似的写法吗?@function好像只能做值处理?
Keywords: Sass @mixin @include
@mixin full {
width: 100%;
height: 100%;
}
#body {
@include full;
}11 回答1.3k 阅读
3 回答965 阅读✓ 已解决
2 回答961 阅读✓ 已解决
3 回答950 阅读✓ 已解决
2 回答649 阅读
3 回答972 阅读
3 回答971 阅读