修改app.component.ts:
@Component({
selector: ‘app-root‘,
templateUrl: ‘./app.component.html‘,
styleUrls: [‘./app.component.scss‘],
encapsulation:ViewEncapsulation.None //样式不进行封装
})
2022-03-03 09:26:31
修改app.component.ts:
@Component({
selector: ‘app-root‘,
templateUrl: ‘./app.component.html‘,
styleUrls: [‘./app.component.scss‘],
encapsulation:ViewEncapsulation.None //样式不进行封装
})