Ionic 2, ion-content of subcomponent overlapped by ion-header
问题 I have a page with an <ion-segment> that I use as a Tab to switch between showing two different custom components: <ion-header> <ion-navbar> <ion-title>Page</ion-title> </ion-navbar> <ion-toolbar> <ion-segment [(ngModel)]="tab"> <ion-segment-button value="section1"> Section 1 </ion-segment-button> <ion-segment-button value="section2"> Section 2 </ion-segment-button> </ion-segment> </ion-toolbar> </ion-header> <section1 *ngIf="tab === 'section1'"></section1> <section2 *ngIf="tab === 'section2'