修改app.component.ts:

@Component({
        selector: 'app-root',
        templateUrl: './app.component.html',
        styleUrls: ['./app.component.scss'],
        encapsulation:ViewEncapsulation.None  //样式不进行封装
     })

相关文章:

  • 2021-10-24
  • 2021-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2022-03-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案