如何在 ionic 框架中为 ios 制作复选框?

Pra*_*ade 2 checkbox ios ionic-framework ionic2

ionic 复选框在 Android 中显示为方形,但在IOS中显示为圆形。

我们怎样才能让它们在 IOS 上变成正方形呢?

小智 5

使用 checkbox-square 系统在复选框类中定义 css 类。

<ion-checkbox class="checkbox-square" ng-model="isCheckedCommercial">value 1</ion-checkbox>
Run Code Online (Sandbox Code Playgroud)

这会对你有帮助。如果您有任何疑问,请告诉我。