Angular 7-Autoprefixer不适用于CSS Grid [英] Angular 7 - Autoprefixer not working with CSS Grid

查看:119
本文介绍了Angular 7-Autoprefixer不适用于CSS Grid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使Angular7与Autoprefixer良好配合。我特别希望获得IE11的支持。我从浏览器列表文件的 IE 9-11中删除了 not。我还添加了

I am trying to get Angular7 working nicely with the Autoprefixer. I'm specifically looking to get support on IE11. I've removed the "not" from "IE 9 - 11" in the browserlist file. I've also added

/ *自动前缀网格:自动放置 /
/
自动前缀网格:在* /

/* autoprefixer grid: autoplace / / autoprefixer grid: on */

到_grid.scss文件的顶部。问题是网格项仍未获得任何前缀。 Flexbox似乎可以正常工作,但CSS网格却不能。我缺少任何配置吗?

To the top of my _grid.scss file. Problem is grid items are still not getting any prefixes. Flexbox seems to work fine but not CSS grid. Is there any configuration I've missed?

推荐答案

我遇到了依赖问题。然


npm审核修复程序

npm audit fix

该问题已解决。

这篇关于Angular 7-Autoprefixer不适用于CSS Grid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆