CSS submit button weird rendering on iPad/iPhone

后端 未结 3 673
青春惊慌失措
青春惊慌失措 2020-11-28 18:06

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 render

相关标签:
3条回答
  • 2020-11-28 18:29

    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.

    0 讨论(0)
  • 2020-11-28 18:34

    oops! just found myself: just add this line on any element you need

       -webkit-appearance: none;
    
    0 讨论(0)
  • 2020-11-28 18:44

    Add this code into the css file:

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

    This will help.

    0 讨论(0)
提交回复
热议问题