Ionic framework 有没有办法让iOS和Android上的ion段看起来一样?
设置离子段模式后,在离子实验室渲染后,它们的外观仍然不同 我试过将离子段和离子工具栏的模式设置为“md”,但它们看起来仍然不同 下面是设置模式后的图像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>
<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测试期间报告自己的应用程序中出现错误时,我直接从爱奥尼亚团队获得了这一信息,所以。。。你做错我了哟!