移除 Mobile Safari (iPhone) 上的 textarea 内阴影 [英] Remove textarea inner shadow on Mobile Safari (iPhone)

查看:22
本文介绍了移除 Mobile Safari (iPhone) 上的 textarea 内阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,Mobile Safari 似乎将顶部内阴影添加到所有输入字段,包括 textarea.有什么办法可以去掉吗?

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 have a white background.

推荐答案

通过添加这个 css 样式:

By adding this css style:

  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;

根据 https://developer.mozilla.org/en-US/docs/Web/CSS/appearance

这篇关于移除 Mobile Safari (iPhone) 上的 textarea 内阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆