在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.2k 阅读
3 回答956 阅读✓ 已解决
2 回答953 阅读✓ 已解决
3 回答927 阅读✓ 已解决
2 回答646 阅读
3 回答962 阅读
3 回答958 阅读