无法使用NG2-PDFJS-Viewer自定义图标

发布于 2025-01-21 01:25:40 字数 259 浏览 2 评论 0原文

我正在使用NG2-PDFJS-Viewer显示PDF文档。我使用Angular版本12。我能够在Assets/pdfjs/web/viewer.css中在viever.css文件中自定义其样式。

我在项目中使用的设计库是碳设计系统。我正在尝试使用诸如搜索图标/箭头图标之类的碳组件。由于我在资产文件夹下有CSS和HTML文件,因此我无法正常工作。

我能够在所有其他组件中使用碳组件,但在资产文件夹下的文件中不使用碳组件。有没有办法实现这一目标? 任何帮助/建议将不胜感激!谢谢

I am using ng2-pdfjs-viewer to display the pdf document. I use Angular version 12. I am able to customize its style in the viewer.css file under assets/pdfjs/web/viewer.css.

The design library which i am using in my project is carbon design system. I am trying to make use of the carbon components like search icon/arrow icon. I cannot get it working since i have the css and html files under the assets folder.

i am able to use carbon components in all other components but not in the files under assets folder. Is there a way to achieve this?
Any help/suggestion is appreciated! Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对岸观火 2025-01-28 01:25:40

我找到答案了!我必须将碳图标放在 assets/pdfjs/web/images 下,并在应用程序中使用这些图标。问题解决了。

I figured out the answer! I had to have the carbon icons under assets/pdfjs/web/images and made use of those in the app. Problem solved.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文