【问题标题】:Can we use boxicon in SCSS for an Angular project?我们可以在 SCSS 中为 Angular 项目使用 boxicon 吗?
【发布时间】: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,请问?

【问题讨论】:

    标签: angular sass


    【解决方案1】:

    您可以在 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>
    

    【讨论】:

      猜你喜欢
      • 2019-09-25
      • 2021-03-24
      • 1970-01-01
      • 1970-01-01
      • 2019-02-21
      • 1970-01-01
      • 1970-01-01
      • 2019-12-13
      • 1970-01-01
      相关资源
      最近更新 更多