离子标题标题不垂直对齐一些Android设备的中间
问题描述:
我正在与离子框架和科尔多瓦的应用程序工作。但是现在我遇到了一个问题。标题标题不能垂直居中对齐。离子标题标题不垂直对齐一些Android设备的中间
屏幕截图:
代码:
<ion-header-bar class="bar-balanced" align-title="center">
<button class="button button-icon" ng-click="logout()">
<i class="icon ion-log-out">Logout</i>
</button>
<ion-title>Title</ion-title>
</ion-header-bar>
答
找到了答案:
ion-title {
position: absolute;
top: 0;
left: 0;
padding: 0 90px 1px;
width: 100%;
height: 100%;
text-align: center;
}
中庸之道内容添加到您r CSS
谢谢你的回答。不幸的是,它不起作用。 – Victor