如何仅在页面中隐藏菜单栏

时间:2015-10-19 06:20:35

标签: html css ionic ionic-view

我只想删除此页面内的小条形图(标题)(图像中的蓝色部分)。image with header bar

我在about.html页面中的离子代码

<nav-page hide-nav-bar="true">


<ion-view>
<ion-content class="app-view">
    <div class="list-inset-feed">
        <div class="item item-text-wrap">
            <div class="row responsive-sm text-center">
                <div class="col">
                    <h1 class="text-white">{{"about_page_title" | translate}}</h1>
                    <h3 class ="text-white">version 1.0.0</h1>

                    <div class="image_container">
                    <img alt="logo" height="100"  src="img/logo.png">
                    </div>
                    <a class="text-white" href="#" onclick="window.open('http://abcd.html', '_system', 'location=yes'); return false;">
            privacy policy
                    </a>

                </div>
            </div>
          </div>
    </div>
</ion-content>

1 个答案:

答案 0 :(得分:1)

hide-nav-bar="true"代码中添加<ion-view>

<强> HTML

<ion-view hide-nav-bar="true">
      <ion-content >
    </ion-content>
</ion-view>