css - Koala Sass - 为什么 autoprefixer 不起作用?

标签 css compilation sass koala autoprefixer

我使用 Koala App 进行 Sass 编译。

我想为属性 CSS3 自动添加前缀

Screenshot my options

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-radiusfully supported by all major browsers并且不需要任何额外的前缀。

关于css - Koala Sass - 为什么 autoprefixer 不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34195992/

相关文章:

css - CSS 的速度

html - 如何使用我从 css 文件导入的字体

c++ - "random does not name a type "错误,即使包含定义

go - 关于Go语言初始化(执行)顺序的问题

html - 在 SCSS 语法中自定义单选按钮

css - 使用 Compass 颜色覆盖响应图像?

sass - 如何更改material.io Web组件填充颜色(mdc-top-app.bar)

jQuery 使用 Body 类扩展导航

javascript - 使 div 跟随屏幕不起作用

python - 如何将python脚本编译为二进制可执行文件