Error : Ant Desgin css style component is not working in Angular 11

Dung Do Tien Dec 31 2020 346

I have a project using angular 11. I have used Ant-Design components version 11.0 to design components for my project but the CSS of Ant-Design is not working.

Please help me if you know any solution.

Have 1 answer(s) found.
  • M

    Milan cubes Dec 30 2020

    Step 1: Import the pre-built stylesheet in angular.json 

    Step 2: If using stylesheet in style.css

     @import "~ng-zorro-antd/ng-zorro-antd.min.css"; 

    Or if using stylesheet in style.less 

    @import "~ng-zorro-antd/ng-zorro-antd.less";
    
Leave An Answer
* NOTE: You need Login before leave an answer

* Type maximum 2000 characters.

* All comments have to wait approved before display.

* Please polite comment and respect questions and answers of others.

Popular Tips

X Close