【问题标题】:how to show shadow/border of <ion-navbar> when using <ion-segment> in Ionic 2在 Ionic 2 中使用 <ion-segment> 时如何显示 <ion-navbar> 的阴影/边框
【发布时间】:2017-08-26 06:05:39
【问题描述】:

作为标题,我试图显示内部的阴影/边框,但我找不到解决方案。我使用了一些 css 代码,但没有任何改变

这是我的 HTML 代码

<ion-header>
  <ion-navbar color="{{this.appService.appColor}}">
    <button ion-button menuToggle>
      <ion-icon name="menu"></ion-icon>
    </button>
    <ion-title>
      Feedbacks
    </ion-title>
  </ion-navbar>
  <ion-toolbar color="{{this.appService.appColorDark}}">
    <ion-segment [(ngModel)]="seg" color="{{this.appService.appStyle}}">
      <ion-segment-button value="users">
        <font color="white">Users Messages</font>
      </ion-segment-button>
      <ion-segment-button value="visitors">
        <font color="white">Visitor Messages</font>
      </ion-segment-button>
    </ion-segment>
  </ion-toolbar>
</ion-header>

HTML 输出:

需要的输出:

注意:此图是windowspaint绘制的。我上传是为了给你我想要的示例。

【问题讨论】:

    标签: html css ionic2 border shadow


    【解决方案1】:

    我认为解决此问题的最佳解决方案是用标签替换段。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-09
      • 2019-07-28
      • 1970-01-01
      • 2018-12-04
      • 2023-04-04
      • 2017-05-13
      相关资源
      最近更新 更多