我使用 Koala App 进行 Sass 编译。
我想为属性 CSS3 自动添加前缀
SCSS:
$radius: 14px;
.test {
border-radius: $radius;
}
结果 CSS(使用设置选项“Autoprefix”编译):
.test {
border-radius: 14px;
}
结果 CSS(编译时不设置选项“Autoprefix”):
.test {
border-radius: 14px;
}
同样的结果。为什么自动前缀不起作用?
这就是我编译后想要得到的
.test {
-webkit-border-radius: 14px;
-moz-border-radius: 14px;
border-radius: 14px;
}
最佳答案
Koala 的 Autoprefixer 只会在需要时添加前缀。显然 border-radius
是 fully supported by all major browsers并且不需要任何额外的前缀。
关于css - Koala Sass - 为什么 autoprefixer 不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34195992/