【发布时间】:2018-12-04 08:16:15
【问题描述】:
app.component.html
<div class="container main-area">
<app-header></app-header>
<router-outlet></router-outlet>
</div>
<app-footer></app-footer>
global.css
.container{
max-width : 1022 px;
}
child.component.html
<div class="media-area">
<media-area></media-area>
</div>
这里我的子组件也采用了来自 app.component.html 容器的 1022px 的最大宽度
我怎样才能覆盖它并制作
.media-area{
width: 100%; (it should take full screen width and not the parent container width)
}
除了这个组件,所有其他组件都需要容器宽度为1022px
【问题讨论】:
标签: javascript html css angular