Using @supports selector in my less file

时间:2018-03-23 00:51:24

标签: css less

I'm trying to do the following in my less file:

@supports (display: grid) {
  div {
    display: grid;
  }
}

But the space between @supports and (display: grid) says that it's expecting a colon. How can I get around this?

1 个答案:

答案 0 :(得分:0)

您是否正在使用Visual Studio?显然问题来自那里,使用命令行编译.less文件,而不是VS