首页 > 解决方案 > IE11 中的 Angular 7 和材质渲染不正确

问题描述

我正在使用角度和材料创建项目。在我的项目中,我使用材料表形式和手风琴。在 chrome 和 edge 浏览器中一切正常,但在 IE11 中只有问题。

Css 未正确渲染。当我单击某处时,它会渲染。下面是ie11的截图

在此处输入图像描述

我已经添加了所有的polyfills并尝试了一切但没有成功..

# For IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed

> 0.5%
last 2 versions
Firefox ESR
not dead
IE 9-11

这个也加了。。

标签: angularangular-material

解决方案


这个问题是由于 flex 属性造成的。Flex 遇到 Internet 浏览器问题。

我已经覆盖了 d-flex 类并且问题已得到修复。


推荐阅读