html - 删除 ionic 头中的边框底部

标签 html css border ionic-framework

我在尝试删除 ionic 应用程序中的 ion header border bottom 时遇到问题

you could see my ionic header with border here

这是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">&nbsp;</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">&nbsp;</div>
            <h1 class="title">proximiti</h1>
            </ion-header-bar>

我尝试了所有方法(在浏览器中我没有看到这个边框!),但没有任何改变! 任何人都可以帮助我尝试找到删除该边框的方法吗? 注意: 还尝试编辑 ionic.css 并仅在浏览器中更改。

编辑:它应该只隐藏在这个 View 中,所以类是透明的

最佳答案

ionic 2/3 中,边框将通过使用 ionic-header no-border 移除。

<ion-header no-border> </ion-header>

ionic 5 中,边框将通过使用 class="ion-no-border" 移除。

<ion-header class="ion-no-border"></ion-header>

关于html - 删除 ionic 头中的边框底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27123773/

相关文章:

javascript - 翻转图像的 Html/CSS/Javascript 函数不起作用

html - Bootstrap 多选 - 组标签的过滤问题

javascript - TinyMCE 4 自定义样式

html - CSS多个浮点: left issue

html - "Continued on next page"在 xsl 分页处

css - 使边框环绕整个窗口会导致显示垂直滚动条吗?

html - Css 动画无限动画线

html - 使用 Bootstrap 导航栏复制 github 的顶部栏行为?

c# - Microsoft.Office.Interop.Excel : How to Apply a border to ONE CELL

css - 诺基亚 C5 边框宽度错误