【发布时间】:2015-01-23 06:47:30
【问题描述】:
我在尝试删除 ionic 应用程序中的 ion header 边框底部时遇到问题
这里是tab-home.html的代码:
<ion-view hide-nav-bar="true">
<ion-header-bar align-title="left" class="bar-transparent" >
<button menu-toggle="left" class="button button-icon ion-ios7-settings">
</button>
<div class="title"> </div>
<h1 class="title">proximiti</h1>
</ion-header-bar>
<!--<ion-nav-bar class="bar-transparent">
</ion-nav-bar>-->
<ion-pane ng-controller="CardsCtrl">
<!--<ion-nav-buttons side="left">
<button menu-toggle="left" class="button button-icon ion-navicon"></button>
</ion-nav-buttons>-->
<td-cards>
<td-card ng-repeat="card in cards" on-destroy="cardDestroyed($index)" on-swipe-left="cardSwipedLeft($index)" on-swipe-right="cardSwipedRight($index)" on-partial-swipe="cardPartialSwipe(amt)" class="card-{{card.index}}" ng-controller="CardCtrl">
<div class="image">
<!--<div class="yes-text" ng-style="leftTextOpacity">LIKE</div>-->
<img ng-src="{{card.image}}">
<!--<div class="no-text" ng-style="rightTextOpacity">NOPE</div>-->
</div>
</td-card>
</td-cards>
</ion-pane>
</ion-view>
您可以在这里看到我们感兴趣的部分:
<ion-view hide-nav-bar="true">
<ion-header-bar align-title="left" class="bar-transparent" >
<button menu-toggle="left" class="button button-icon ion-ios7-settings">
</button>
<div class="title"> </div>
<h1 class="title">proximiti</h1>
</ion-header-bar>
我尝试了所有方法(在浏览器中我看不到这个边框!),但没有任何改变! 任何人都可以帮助我试图找到删除该边界的方法吗? 注: : 还尝试编辑 ionic.css 并仅在浏览器中更改。
编辑:它应该只在这个视图中隐藏,所以类是条形透明的
【问题讨论】:
-
你找到解决办法了吗?有类似的问题。
-
您是否尝试添加样式:背景图像:无;边框底部:无?
-
我在我的应用程序中使用侧边菜单,并希望使标题透明!你能解释一下你是如何让你的标题透明的吗?我也有边境问题:(已经几周了..怜悯!
-
@MilanMaharjan 您可以在我接受的答案中看到我的表现。
标签: html css border ionic-framework