Home » Android » css – How to set different styles for Android and iOS in Ionic-Exceptionshub

css – How to set different styles for Android and iOS in Ionic-Exceptionshub

Posted by: admin February 26, 2020 Leave a comment

Questions:

Is it possible to set different styles when my app is on an IOS or Android device in HTML or CSS?

For example, IOS devices space out <ion-title> differently than Android devices.

How to&Answers:

In that case you can use something like this.

.ios ion-title {
    color: black;
}
.md ion-title {
    color: blue;
}

Also you can check it out the official documentation here Ionic Platform Style