【发布时间】:2022-02-16 18:22:20
【问题描述】:
通常,我使用boxicons 来添加图标。该库在 CSS 中。
<link href='https://unpkg.com/boxicons@2.1.1/css/boxicons.min.css' rel='stylesheet'>
在 Angular 项目中,我需要使用 SCSS,我不明白如何使用 https://boxicons.com,请问?
【问题讨论】:
通常,我使用boxicons 来添加图标。该库在 CSS 中。
<link href='https://unpkg.com/boxicons@2.1.1/css/boxicons.min.css' rel='stylesheet'>
在 Angular 项目中,我需要使用 SCSS,我不明白如何使用 https://boxicons.com,请问?
【问题讨论】:
您可以在 Angular 项目的 index.html 的 head 标签中添加它
<head>
<link href='https://unpkg.com/boxicons@2.1.1/css/boxicons.min.css' rel='stylesheet'>
</head>
然后使用这样的图标
<i class='bx bx-user'></i>
【讨论】: