0

我使用 ngx-tree-select 进行多级选择。

https://stackblitz.com/edit/ngx-tree-select

内部下拉字体真棒图标没有显示。检查时,. 我拥有的字体很棒的版本是“@fortawesome/fontawesome-free”:“^5.2.0”,我还安装了最新版本“@fortawesome/fontawesome-free”:“^5.12.0”,但图标仍然不是显示在下拉列表中。

在此处输入图像描述

加号,减号,检查图标没有显示。有人可以帮我摆脱这个问题。

4

2 回答 2

1

谢谢你帮助我。我找到了解决方法,

我在 index.html 中导入了“”,在 styles.css 中添加了一些 CSS

tree-select-item .item.item a span .fa {
    font-family: FontAwesome;
}
tree-select-item .item.item a .fa {
    font-family: FontAwesome;
}

作为我的应用程序,默认.fa { font-family:"Font awesome 5 free"}不允许显示旧图标。

于 2020-10-23T07:24:25.660 回答
0

根据官方文档here

添加你的头部部分 index.html

<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
于 2020-10-22T08:19:45.683 回答