<input type=“submit”> padding bug on Safari mobile?

前端 未结 5 2104
眼角桃花
眼角桃花 2021-02-13 23:47

(This is similar to the (also unanswered) question #3430506, but applies to input tags instead of HTML5 elements.)

On buttons, th

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-14 00:15

    Do you have control over the form? aka: did you manually enter the form?

    If so add either a id or class tag to it

    
    

    then adjust your css to

    form input #submit { /* more specific to override webkit */ 
       -webkit-appearance:none;  
       -webkit-border-radius:0px;
       margin:0;  
       padding:0;  
       border:0;  
       display:block;
    }
    

提交回复
热议问题