3
我正在使用ionic v2。我在Android中的導航欄有問題。 請看到這個圖像: https://drive.google.com/file/d/0B7NIjYwi6WIpM0I3eXJLdWlnV0k/view?usp=sharingionic 2 Android標題和按鈕未在導航欄中對齊
左側和右側的標題和按鈕不是垂直對齊。左邊的是頂部,標題在底部,左邊的按鈕在中間。
在iOS和網頁瀏覽器中,全部對齊完美。這裏是圖像:
https://drive.google.com/file/d/0B7NIjYwi6WIpcERhd1dPa3FVaDA/view?usp=sharing
這裏是我的離子V2 HTML:
<ion-header>
<ion-navbar color="nav_bar" class="nav_bar_style">
<ion-buttons start>
<button ion-button clear color="nav_bar_bttn (click)="searchBttnPressed()">
<ion-icon ios="ios-search" md="md-search"></ion-icon>
</button>
</ion-buttons>
<ion-title text-center>Main</ion-title>
<ion-buttons end>
<button ion-button clear color="nav_bar_bttn" (click)="sortBttnPressed()">
<ion-icon>Sort</ion-icon>
</button>
<button ion-button clear color="nav_bar_bttn" (click)="addBttnPressed()">
<ion-icon name="md-add"></ion-icon>
</button>
</ion-buttons>
</ion-navbar>
</ion-header>
<ion-content>
<ion-list>
<button ion-item *ngFor="let item of items" (click)="itemTapped($event, item)">
{{item.noteId}}
<div class="item-note" item-right>
{{item.content}}
</div>
</button>
</ion-list>
<div *ngIf="selectedItem" padding>
You navigated here from <b>{{selectedItem.title}}</b>
</div>
</ion-content>
你是如何解決這個問題的? – superUser