Icon not displayed inside input line in Ionic 3
问题 I have the following code in my Ionic 3 project. <ion-item> <ion-icon name="person" item-start></ion-icon> <ion-label floating>Email</ion-label> <ion-input type="email" name="email" [(ngModel)]="registerCredentials.email" required></ion-input> </ion-item> This gives me the following result. The icon in outside of the input line. Who to get it inside by keeping my Label floating. 回答1: You can fix that by placing the icon inside of the label, like this: <ion-item> <ion-label floating> <ion-icon