CSS submit button weird rendering on iPad/iPhone

IphoneCssIpadMobile SafariMobile Webkit

Iphone Problem Overview


I noticed that if I style my buttons with CSS using radius, colors and borders, they look good but in the iphone/ipad/ipod they look terrible...shouldn't be the same rendering as in Safari Desktop??

enter image description here

Iphone Solutions


Solution 1 - Iphone

Oops! I just found this myself. Just add this line on any element you need:

   -webkit-appearance: none;

Solution 2 - Iphone

Add this code into the css file:

input {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}

This will help.

Solution 3 - Iphone

The above answer for webkit appearance worked, but the button still looked kind pale/dull compared to the browser on other devices/desktop. I also had to set opacity to full (ranges from 0 to 1)

-webkit-appearance:none;
opacity: 1

After setting the opacity, the button looked the same on all the different devices/emulator/desktop.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionFrancescoView Question on Stackoverflow
Solution 1 - IphoneFrancescoView Answer on Stackoverflow
Solution 2 - Iphonesubindas pmView Answer on Stackoverflow
Solution 3 - IphonePriyank ThakkarView Answer on Stackoverflow