iOS forces rounded corners and glare on inputs

后端 未结 6 1784
礼貌的吻别
礼貌的吻别 2020-11-29 17:29

iOS devices add a lot of annoying styles on form inputs, particularly on input[type=submit]. Shown below are the same simple search form on a desktop browser, and on an iPad

6条回答
  •  温柔的废话
    2020-11-29 18:12

    This is the what I use in my projects

    * { 
        -webkit-tap-highlight-color: transparent; 
    }
    a, article, div, h1, h2, h3, h4, h5, h6, img, section, span {
        -moz-user-select: none; 
        -webkit-user-select: none; 
    }
    input, select, textarea { 
        -webkit-appearance: none; 
        -webkit-border-radius:0; 
        border-radius: 0; 
    }
    

提交回复
热议问题