无法使用NG2-PDFJS-Viewer自定义图标
我正在使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到答案了!我必须将碳图标放在
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.