【问题标题】:Koala Sass - Why autoprefix not work?Koala Sass - 为什么自动前缀不起作用?
【发布时间】:2016-03-15 17:46:07
【问题描述】:

我使用 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;
}

【问题讨论】:

    标签: css compilation sass koala autoprefixer


    【解决方案1】:

    Koala 的 Autoprefixer 只会在需要时添加前缀。显然border-radiusfully supported by all major browsers 并且不需要任何额外的前缀。

    【讨论】:

      猜你喜欢
      • 2017-03-24
      • 2018-11-09
      • 1970-01-01
      • 2015-08-19
      • 2020-03-08
      • 2017-11-28
      • 1970-01-01
      • 2022-08-17
      • 2014-08-23
      相关资源
      最近更新 更多