Ionic:Header Title Bold

时间:2015-06-23 17:16:46

标签: ionic-framework ionic

我有一个侧边菜单:

<ion-side-menus enable-menu-with-back-views="false">
    <ion-side-menu-content>
        <ion-nav-bar class="bar-positive" align-title="center">
            <ion-nav-back-button>
            </ion-nav-back-button>

            <ion-nav-buttons side="left">
                <button class="button button-icon button-clear ion-navicon" menu-toggle="left">
                </button>
            </ion-nav-buttons>
        </ion-nav-bar>
        <ion-nav-view name="menuContent"></ion-nav-view>
    </ion-side-menu-content>

    <ion-side-menu side="left" width="300">
        <ion-content>
            <div class="list">
                <a class="item item-icon-left" ui-sref="app.bla" menu-close>
                    <i class="icon menu-icon ion-home"></i>
                    <h2>Bla</h2>
                </a>
                <a class="item item-icon-left" ui-sref="app.blub" menu-close>
                    <i class="icon menu-icon ion-person"></i>
                    <h2>Blub</h2>
                </a>
            </div>
        </ion-content>
    </ion-side-menu>
</ion-side-menus>

我想修改每个视图中设置的标题:

<ion-view view-title="MyTitle">
    <ion-content>

    </ion-content>
</ion-view>

如何修改标题,例如将其设置为bold或让它左对齐或右对齐?

0 个答案:

没有答案