我有一个索引。应用模块中的SCSS。有样式
html,
body {
max-width: 1400px;
margin: auto;
}
我还有其他模块,module2,我不需要上面的样式,我怎么能"关闭"呢?这个吗?我试着在module2的主要组件中重新声明这种风格,但它没有帮助:
max-width: unset !important;
margin: 0 !important;
在第二个模块主组件样式文件中编写css选择器。然后在第二个模块
的主组件中设置ViewEncapsulation为None