Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 有没有办法让iOS和Android上的ion段看起来一样?_Ionic Framework_Ionic4 - Fatal编程技术网

Ionic framework 有没有办法让iOS和Android上的ion段看起来一样?

Ionic framework 有没有办法让iOS和Android上的ion段看起来一样?,ionic-framework,ionic4,Ionic Framework,Ionic4,设置离子段模式后,在离子实验室渲染后,它们的外观仍然不同 我试过将离子段和离子工具栏的模式设置为“md”,但它们看起来仍然不同 下面是设置模式后的图像 <ion-toolbar mode="md"> <ion-segment scrollable mode="md"> <ion-segment-button value="top" checked> TOP </ion-segment-button>

设置离子段模式后,在离子实验室渲染后,它们的外观仍然不同

我试过将离子段和离子工具栏的模式设置为“md”,但它们看起来仍然不同

下面是设置模式后的图像

<ion-toolbar mode="md">
    <ion-segment scrollable mode="md">
      <ion-segment-button value="top" checked>
        TOP
      </ion-segment-button>
      <ion-segment-button value="nfl">
        NFL
      </ion-segment-button>
      <ion-segment-button value="nba">
        NBA
      </ion-segment-button>
      <ion-segment-button value="mlb">
        MLB
      </ion-segment-button>
      <ion-segment-button value="nhl">
        NHL
      </ion-segment-button>
      <ion-segment-button value="ncaaf">
        NCAAF
      </ion-segment-button>
      <ion-segment-button value="ncaab">
        NCAAB
      </ion-segment-button>
    </ion-segment>
</ion-toolbar>

顶部
NFL
美国篮球职业联盟
MLB
NHL
NCAAF
NCAAB

我希望两个平台上的ion部分看起来都像android版本,但目前,它们看起来仍然不同。

由于Ionic 4 beta版中的一款,您还必须在每个组件上设置
模式

这意味着
离子段按钮
组件,如:

<ion-toolbar mode="md">
    <ion-segment scrollable mode="md">
      <ion-segment-button mode="md" value="top" checked>
        TOP
      </ion-segment-button>
      <ion-segment-button mode="md" value="nfl">
        NFL
      </ion-segment-button>
      <ion-segment-button mode="md" value="nba">
        NBA
      </ion-segment-button>
      <ion-segment-button mode="md" value="mlb">
        MLB
      </ion-segment-button>
      <ion-segment-button mode="md" value="nhl">
        NHL
      </ion-segment-button>
      <ion-segment-button mode="md" value="ncaaf">
        NCAAF
      </ion-segment-button>
      <ion-segment-button mode="md" value="ncaab">
        NCAAB
      </ion-segment-button>
    </ion-segment>
</ion-toolbar>

顶部
NFL
美国篮球职业联盟
MLB
NHL
NCAAF
NCAAB

两个月后出现并投票否决的人没有任何评论:当我在爱奥尼亚4测试期间报告自己的应用程序中出现错误时,我直接从爱奥尼亚团队获得了这一信息,所以。。。你做错我了哟!