Angular Material 的默认图标列表 2+ [英] Default Icon List of Angular Material 2+

查看:37
本文介绍了Angular Material 的默认图标列表 2+的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要查看 Angular Material 的默认图标列表https://material.angular.io/components/icon/overview

I need to see a default list of Icons for Angular Material https://material.angular.io/components/icon/overview

我没有使用 Font Awesome 和 Google Fonts

I am not using Font Awesome and Google Fonts

推荐答案

恐怕 Angular Material Icon 组件实际上并未预加载 Google Material Design Icons.

The Angular Material Icon component actually isn't pre-loaded with the Google Material Design Icons, I'm afraid.

根据图标概览的文档:

默认情况下, 期望 素材图标字体.(您仍需要包含 HTML 以加载字体及其 CSS,如链接中所述).

By default, <mat-icon> expects the Material icons font. (You will still need to include the HTML to load the font and its CSS, as described in the link).

它位于带有连字的字体图标"标题下.我也在这里强调期望"这个词

它甚至在 Getting开始指南您应该将 Material Icons 字体添加到您的 index.html:

And it even states under the Getting Started guide that you should add the Material Icons font to your index.html:

如果您想使用带有官方 Material Design Icons 的 mat-icon 组件,请在您的 index.html 中加载图标字体.

If you want to use the mat-icon component with the official Material Design Icons, load the icon font in your index.html.

因此,您必须在您的应用中加载图标字体(或 SVG 图标集).你必须自己做.

So, you have to load an icon font (or an SVG iconset) in your app. You'll have to do it yourself.

以下是一些您可以使用的字体图标/SVG 图标:

Here's some font icons/ SVG icons you can use:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆