3
我的根组件未填充屏幕高度。根分量模板如下:角度2组件未填满屏幕
<md-toolbar color="primary" id="tool">
<div fxLayout="row" style="width: 100%">
<div fxFlex="10" fxFlexAlign="center">
<md-icon (click)="navigateBack()" [hidden]="!showBackNavigation">keyboard_arrow_left</md-icon>
</div>
<div fxFlex="70" fxFlexAlign="center">
<span>
{{headerTitle}}
</span>
</div>
</div>
</md-toolbar>
<router-outlet>
</router-outlet>
我想要做的是为所有标签设置最小高度:100%,但这并不奏效。如果我以像素为单位设置高度,它会正确更新。我怎样才能使内容填充窗口的高度?
Screenshot with HTML layout and application