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