Android 安卓和ios上不同的用户界面
我使用离子3角,并使用离子滚动奠定了一个水平滚动区域,呈现一些按钮。代码看起来像Android 安卓和ios上不同的用户界面,android,css,angular,ionic3,Android,Css,Angular,Ionic3,我使用离子3角,并使用离子滚动奠定了一个水平滚动区域,呈现一些按钮。代码看起来像 <ion-scroll scrollX="true" style="width:100vw;height:49px"> <ion-row nowrap > <button *ngFor="let item of messageQueue.shortcutList" ion-button small round (click)="proce
<ion-scroll scrollX="true" style="width:100vw;height:49px">
<ion-row nowrap >
<button *ngFor="let item of messageQueue.shortcutList" ion-button small round (click)="processShortcut(item.action)">{{item.action}}</button>
</ion-row>
</ion-scroll>
{{item.action}
这在ios上看起来很完美,但在android上渲染的按钮大小是固定的,因此文本被剪切
请查看屏幕截图不确定是否需要此功能,但如果不希望应用程序具有每个设备的本机外观,则可以将应用程序设置为默认设置
imports: [
IonicModule.forRoot(MyApp,{
mode: 'md'
})
],
在这种情况下,它默认为材质外观。图像似乎不起作用,您可以将其上载到imgurtry now plz。它应该可以工作。我没有使用Ionic,但是,在android上似乎禁用了溢出功能,如果您使用css
overflow:auto
启用它,那么它将在ios和android ui上工作。这就是我搜索的解决方案。另外,向@Vik发送+1以询问相关问题。