Remove textarea inner shadow on Mobile Safari (iPhone)

前端 未结 6 1097
耶瑟儿~
耶瑟儿~ 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:40

    While adding the CSS style

    -webkit-appearance: none;
    

    will work, it gets rid of everything. You may want to try this instead:

    box-shadow: none !important;
    

    This way you keep the down-arrow.

提交回复
热议问题