我的假设是我的CSS不正确,但唉,我无法弄清楚这一点.
<div *ngIf="loading"> <md-progress-circle mode="indeterminate" color="warn">Loading...</md-progress-circle> </div> <md-list> <md-list-item *ngFor="let incident of incidents"> <h3 md-line> {{name}} </h3> <p md-line> <span>{{date}} > </span> <span>{{text}}</span> </p> </md-list-item> </md-list>
您需要确保使用@ angular / material的主题.
Include the core and theme styles:
This is required to apply all of the core and theme styles to your
application. You can either use a pre-built theme,or define your own
custom theme.
- See the 07001 for instructions.
我发现使用没有主题的@ angular / material只能在某些时候使用.文本输入工作但无线电按钮,复选框 – 并且它似乎是微调器 – 需要主题才能正常工作.
如引用中所述,您可以使用其中一个提供的主题(目前提供6个主题)或创建自己的主题.使用@import(‘〜@ angular / material / core / theming / prebuilt /< theme> .css’)可以将提供的主题包含在您的CSS中.
原文地址:https://www.jb51.cc/angularjs/240427.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。