Angular 2 - PrimeNg style not working

后端 未结 7 1861
野趣味
野趣味 2020-12-29 10:53

I\'ve followed the instruction to install primeng by running npm install primeng --save then importing what I need in the app.module.ts file, for e

7条回答
  •  长情又很酷
    2020-12-29 11:22

    I resolve my problem by remove rel="stylesheet" type="text/css" from index.html and also added below imports to styles.css :

    @import '~primeicons/primeicons.css';
    @import '~primeng/resources/themes/nova-light/theme.css';
    @import '~primeng/resources/primeng.min.css';
    

提交回复
热议问题