Remove textarea inner shadow on Mobile Safari (iPhone)

前端 未结 6 1122
耶瑟儿~
耶瑟儿~ 2020-12-12 11:20

By default, it seems Mobile Safari adds the top inner shadow to all input fields, including textarea. Is there a way to remove it?

It\'s especially ugly when you hav

6条回答
  •  情歌与酒
    2020-12-12 11:36

    Sometimes you can have a stylesheet there broke the appearance: none; so a way to fix it when that happens is to use caret. The best way will be to rewrite your code and find out what's part of your code there mess up the style for none

    Before using caret you need to know that it can get you some trouble with other styles

    -webkit-appearance: caret;
       -moz-appearance: caret;
         -o-appearance: caret;
            appearance: caret;
    

    NOTE: Use none, caret is not the optimal.

提交回复
热议问题