我是新來的離子發展。我實現基於窗體的應用程序。無論何時打開鍵盤,我的標籤都會顯示在鍵盤的上方。當鍵盤打開時,離子選項卡不會被隱藏
需要隱藏標籤,每當鍵盤打開。請幫助我。
謝謝你的高級..!
這裏我的標籤代碼
<style>
.keyboard-open .hide-on-keyboard-open {
display: none;
}
.keyboard-open .tabs.hide-on-keyboard-open + .pane .has-tabs, .keyboard-open .bar-footer.hide-on-keyboard-open + .pane .has-footer {
bottom: 0;
}
</style>
<ion-view view-title="{{headerObj.produceDetails}}" hide-back-button="true">
<ion-content>
<form role="form" name="myForm">
---------
</form>
</ion-content>
<div class = "tabs tabs-icon-bottom tabs-striped tabs-color-gray hide-on-keyboard-open">
<a class = "tab-item" ui-sref="app.farmerHome">
<i class = "icon ion-home"></i>
{{headerObj.home}}
</a>
<a class = "tab-item" ui-sref="app.farmersideRecords">
<i class = "icon ion-compose"></i>
{{headerObj.records}}
</a>
<a class = "tab-item" ui-sref="app.farmerSideDiscussions">
<i class = "icon ion-person-stalker"></i>
{{headerObj.discussions}}
</a>
<a class = "tab-item" ui-sref="app.farmerMaps">
<i class="icon ion-map"></i>
{{headerObj.map}}
</a>
<a class = "tab-item" ui-sref="app.farmerSettings">
<i class = "icon ion-gear-b"></i>
{{headerObj.settings}}
</a>
</div>
</ion-view>
請不要在多個問題上發佈相同的答案。你的答案需要專門針對每個問題。如果多個問題是彼此重複的,請將它們標記爲這樣,而不是用相同的答案回答它們。 – meagar