建立一个统一样式文件base-xxx.component.css
在需要导入样式的组件中,编辑.ts文件导入样式:
右侧是它的相对路径.
转:https://www.cnblogs.com/battlecry/p/10823490.html