android - Ionic ios 应用程序在标题下方显示黑条
<p><p>我是 <code>ionic</code> 移动应用程序开发的新手。我正在开发一个移动应用程序,其中 <code>Android</code> 应用程序运行良好,但在 <code>IOS</code> 上它在标题下方显示黑条。</p>
<p><strong>IOS:</strong> </p>
<p> <a href="/image/haP9N.png" rel="noreferrer noopener nofollow"><img src="/image/haP9N.png" alt="with black bar"/></a> </p>
<p><strong>安卓:</strong></p>
<p> <a href="/image/gi0DK.png" rel="noreferrer noopener nofollow"><img src="/image/gi0DK.png" alt="Work Perfect"/></a> </p>
<p><strong>截图代码:</strong></p>
<pre><code><ion-content class="padding">
<div class="list">
<a class="item item-icon-left" ui-sref="appBody.dashboard"> <i
class="icon fa fa-tachometer"></i> Dashboard
</a> <a class="item item-icon-left" href="#"> <i
class="icon fa fa-lightbulb-o"></i> Opportunity
</a> <a class="item item-icon-left" ui-sref="appBody.person"> <i
class="icon fa fa-user"></i> Person <!-- <span class="item-note">
Grammy
</span> -->
</a> <a class="item item-icon-left" ui-sref="appBody.scheduler"> <i
class="icon fa fa-calendar"></i> Calendar <!-- <span class="badge badge-assertive">0</span> -->
</a> <a class="item item-icon-left" ui-sref="appBody.product"> <i
class="icon fa fa-cube"></i> Products
</a> <a class="item item-icon-left" href="#"> <i
class="icon fa fa-weixin"></i> Interactions
</a> <a class="item item-icon-left" ui-sref="appBody.organization"> <i
class="icon fa fa-building-o"></i> Organizations
</a>
<a class="item item-icon-left" ui-sref="appBody.priceBook"> <i
class="icon ion-ios-book"></i> Price Book
</a>
<a class="item item-icon-left" ui-sref="appBody.visitplan"> <i
class="icon fa fa-map-marker"></i> Visits
</a>
<a class="item item-icon-left" href="#"> <i
class="icon ion-clipboard"></i> Place Order
</a>
<a class="item item-icon-left" ui-sref="appBody.competitors"> <i
class="icon ion-ios-people"></i> DF SD
</a>
<a class="item item-icon-left" ui-sref="appBody.tax"> <i
class="icon ion-ios-calculator"></i> DSAF SSF
</a>
<a class="item item-icon-left" ui-sref="appBody.serviceRequest"> <i
class="icon ion-android-cart"></i> FADSF SDFIAF
</a>
<a class="item item-icon-left" ui-sref="appBody.baAttandance"> <i
class="icon ion-android-checkbox-outline"></i> NFASDFJAGDS
</a>
<a class="item item-icon-left" ui-sref="appBody.uiTheme"> <i
class="icon ion-gear-a"></i> ABCDEFF
</a>
</div>
<br><br><br>
</ion-content>
</code></pre>
<p><strong>主界面代码:</strong></p>
<pre><code><ion-header-bar align-title="center" class={{headerThemeName}}>
<a class="button fa fa-th" style="font-size: 18px"
ui-sref="appBody.menu"></a> <!-- <i class="fa fa-th"></i> -->
<h1 class="title">{{Title}}</h1>
<div class="buttons">
<button class="button fa fa-search" style="font-size: 18px;"
ui-sref="appBody.search"></button>
<button class="button ion-plus"
style="font-size: 18px; margin-left: 3%" ng-click="addNew()" ng-show="addNewHS"></button>
</div>
</ion-header-bar>
<div style="padding-bottom: 15px">
<ion-spinner icon="spiral"ng-show="hasPendingRequests()"></ion-spinner>
<ion-nav-view class="padding has-header has-footer"
overflow-scroll="true"></ion-nav-view>
</div>
</code></pre>
<p>任何帮助将不胜感激。谢谢。</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>通过将 <code><ion-view></code> 添加到应用程序结构中来解决此问题,如下所示:</p>
<pre><code><ion-view>
<!-- optional subheader for that view -->
<ion-header-bar class="bar-subheader"></ion-header-bar>
<ion-content>
Content for the view
</ion-content>
<!-- optional footer for that view -->
<ion-footer-bar></ion-footer-bar>
</ion-view>
</code></pre></p>
<p style="font-size: 20px;">关于android - Ionic ios 应用程序在标题下方显示黑条,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/32600263/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/32600263/
</a>
</p>
页:
[1]