Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css Angular 10应用程序脱机可用性_Css_Angular - Fatal编程技术网

Css Angular 10应用程序脱机可用性

Css Angular 10应用程序脱机可用性,css,angular,Css,Angular,我正在尝试将我的angular项目设置为脱机工作。似乎我无法设置它,以便CSS和材质图标可以脱机使用 我已经使用NPM离线安装了字体和图标,并使用局部变量配置了我的样式CSS,如下所示: @import'~@angular/material/theming'; //包括角材质的常用样式。我们在这里包括这一点,以便您 //必须在你的应用程序中为角度材质加载一个css文件。 //字体 @导入“~material design icons/icont/material icons.css”; //@

我正在尝试将我的angular项目设置为脱机工作。似乎我无法设置它,以便CSS和材质图标可以脱机使用

我已经使用NPM离线安装了字体和图标,并使用局部变量配置了我的样式CSS,如下所示:

@import'~@angular/material/theming';
//包括角材质的常用样式。我们在这里包括这一点,以便您
//必须在你的应用程序中为角度材质加载一个css文件。
//字体
@导入“~material design icons/icont/material icons.css”;
//@进口的https://fonts.googleapis.com/css?family=Material+图标';
@导入“typeface roboto/index.css”;

您应该看看这个: