Angular 组件引入其他css不生效

时间:2020-12-18 12:26:17   收藏:0   阅读:3

修改app.component.ts:

@Component({
        selector: ‘app-root‘,
        templateUrl: ‘./app.component.html‘,
        styleUrls: [‘./app.component.scss‘],
        encapsulation:ViewEncapsulation.None  //样式不进行封装
     })
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!