css - WebStorm 中的 PostCSS 语法

标签 css phpstorm webstorm postcss

我想开始在 WebStorm 中使用 PostCSS 插件,我想知道如何去做。

我已经使用 index.htmlstyle.css 创建了新元素。最后我设置了 PostCSS 方言。自动安装 PostCSS 插件。

我写

main{
  height: 400px;
  width: 100%;
  section{
    width: 60%;
    height: 50px;
    border: 2px solid black;
  }
}

并且 postcss-nest 不起作用。

最佳答案

您可以在首选项 | 中为您的 .css 文件启用 PostCSS 支持。语言与框架 |样式表 |方言。

enter image description here

关于css - WebStorm 中的 PostCSS 语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48613236/

相关文章:

phpstorm - 禁止检查 WebStorm/PhpStorm 中的整个文件

html - 文本迫使 DIV 不保持相同的大小

css - Grafana 主题可以吗?

intellij-idea - IDEA IDE - 禁用对一个文件的检查

css - WebStorm 在 TFS 上的 scss 文件观察器(使用 node-sass)上清除 css 文件的只读标志

typescript - 如何让 .js 和 .js.map 文件滚动成为 .ts 文件下的子文件

jquery - 使用 jQuery 交换背景图像

css - 删除 100% 宽度 SVG 图形的底部间距

ftp - PhpStorm 与多个服务器一起工作

php - 如何在 phpstorm 中为数组声明强制执行长语法?