2016-06-15 39 views
0

在我的移動應用的登錄屏幕上,我想隱藏默認導航欄。我希望屏幕是全尺寸沒有任何標題欄。我看到下面的鏈接很多答案:在離子應用中隱藏導航欄

Good pattern for hiding ion-nav-bar on login and not having a back button just after login?

how to hide header bar in ionic?

但它並沒有解決實際問題。我可以隱藏導航欄,但空白空間是由頂部的導航欄拍攝的,並未被刪除。

任何線索?

+1

面向所有其他面臨類似問題的開發人員>首先將hide-nav-bar設置爲true,然後將您的ion-view指定爲ng-class並賦予100%的高度。從離子含量去除類「有頭」,問題將得到解決。這對我來說很有用,它肯定會適合你。我沒有足夠的信譽來upvote這個答案,所以我請求其他人,如果它適用於他們,請upvote這個答案。 – mobigaurav

回答

1

您可以用CSS的幫助下做到這一點,

<style> 
    .tab-nav, .bar-footer{ 
    display: none !important; 
    } 

.bar.bar-header { 
    display: none 
    } 

    .has-tabs-top { 
    top: 0px !important; 
    } 
    .has-tabs-bottom { 
    bottom: 0px !important; 
    } 
    .has-tabs, .bar-footer.has-tabs, .has-footer.has-tabs { 
    bottom: 0px; 
    } 
    /* custom header footer overrides */ 
    .custom-header, .custom-footer{ 
    display: block !important; 
    } 
</style> 

這將隱藏頁眉頁腳和標籤欄,只是貼吧的登錄頁面的ion-view外(見下文)。

+0

謝謝Nahiduzzaman .. – mobigaurav