Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 PrimeNG 的树组件。有谁知道如何更改展开和折叠图标?我的目标是得到一个加号和减号而不是fa-caret-downand fa-caret-right。
fa-caret-down
fa-caret-right
所以从
至
将以下 CSS 添加到您的组件中:
::ng-deep .fa-caret-right::before { content: "\F067"; } ::ng-deep .fa-caret-down::before { content: "\F068"; }
Plunker 示例