Css 在服务器上部署时,IE11中不显示PrimenNg图标
我正在进行一个角度项目,并对许多组件使用素描 该项目在所有浏览器(IE11、Chrome)中本地运行时运行良好。但是,当我在服务器(linux)上部署项目时,启动图标不会被渲染 我做了一些研究,发现在启动CSS文件(见下文)中定义的CSS实体没有加载到服务器上的IE11中Css 在服务器上部署时,IE11中不显示PrimenNg图标,css,angular,internet-explorer-11,primeng,Css,Angular,Internet Explorer 11,Primeng,我正在进行一个角度项目,并对许多组件使用素描 该项目在所有浏览器(IE11、Chrome)中本地运行时运行良好。但是,当我在服务器(linux)上部署项目时,启动图标不会被渲染 我做了一些研究,发现在启动CSS文件(见下文)中定义的CSS实体没有加载到服务器上的IE11中 .pi-exclamation-triangle:before { content: "\e922"; } .pi-calendar:before { content: "\e927"; } 我在Index
.pi-exclamation-triangle:before {
content: "\e922";
}
.pi-calendar:before {
content: "\e927";
}
我在Index.html中添加了这一行
<meta http-equiv="X-UA-Compatible" content="ie=edge">
如果您有任何建议,我们将不胜感激。我看到您提到“未在服务器上的IE11中加载启动css文件(见下文)”
我在下面找到了一些解决方法或建议
希望这能有所帮助。,您是否看到在浏览器控制台窗口中记录的任何错误..?您是否看到在浏览器控制台窗口中记录的任何错误。。?
** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/set';