我想将应用徽标图像放在离心标题中心或左侧,垂直居中对齐,但它会移动到标题顶部。
以下代码我用来显示这个,但问题来自于
describe('FrameHandler', function () {
it('Should pass if the currently set frame name is top_page', function (done) {
this.timeout(15000); // Include this
chromeDriver.get('http://www.site_with_frame.com');
frameHandler.switchToFrame('top_page');
frameHandler.getCurrentFrameName(function (name) {
console.log(name); //This is never called.
done(); //Include this
});
});
}
请帮我解决此问题。
答案 0 :(得分:3)
您可以使用<ion-nav-title>
试试这个
<ion-view>
<ion-nav-title>
<img src="img/logo.png">
</ion-nav-title>
<ion-content>
//Your content here
</ion-content>
</ion-view>