简体   繁体   English

在Stackblitz中导入角材料

[英]Importing Angular Material in Stackblitz

I have imported material(7.2.1) in my stackblitz link, 我在stackblitz链接中导入了物料(7.2.1)

Still I am unable see the exact UI of material 我还是看不到材料的确切UI

I have tried to figure out, but no result. 我试图弄清楚,但没有结果。 Here the stackblitz which i have created. 在这里,我创造了堆叠闪电战

Angular Material lets you know what the issue is in the console: Angular Material让您知道控制台中存在的问题:

Could not find Angular Material core theme. 找不到Angular Material核心主题。 Most Material components may not work as expected. 大多数材料组件可能无法正常工作。 For more info refer to the theming guide: https://material.angular.io/guide/theming 有关更多信息,请参阅主题指南: https : //material.angular.io/guide/theming

You are not importing a core theme from Angular Material. 您不是从Angular Material导入核心主题。 Add this line to your styles.css: 将此行添加到您的styles.css中:

@import '@angular/material/prebuilt-themes/deeppurple-amber.css';

See this link in the official documentation. 请参阅官方文档中的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Angular 材质样式未应用于 StackBlitz - Angular material style not applied in StackBlitz Angular Material Stepper在StackBlitz上不起作用 - Angular Material Stepper not working on StackBlitz Angular Material Stepper 和 Stackblitz 示例的问题 - Issue with Angular Material Stepper and Stackblitz example Angular Material似乎在StackBlitz中不起作用 - Angular Material does not seem to work in StackBlitz Angular 和 Stackblitz - Angular and Stackblitz 导入 Angular 材质主题 - Importing Angular Material Themes 带有可扩展行的角度材料表,在更改选项卡时自动扩展 使用 stackBlitz 示例 - Angular material Table with expandable rows, automaticly expanded when change tabs With stackBlitz example 带有排序功能的 Angular 8 Material 表在本地工作正常,但在 Stackblitz / 不同的 @ViewChild 时间上不能正常工作? - Angular 8 Material table with sorting works fine locally but not on Stackblitz / different @ViewChild timing? 角度(7)材质工具栏+ Sidenav; 遇到台式机与移动设备之间的高度差异的麻烦(包括stackblitz示例) - Angular (7) Material Toolbar+Sidenav; Having trouble with height differences in desktop vs mobile (stackblitz sample included) 通过自定义Angular Material模块导入组件 - Importing components through a custom Angular Material module
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM