2

我正在尝试使用 css 设置输入样式,以在 iOS 上以相同的方式显示,而无需应用默认的 iOS 输入样式。

<input name="t1" class="imgupload" type="file" accept="image/*" capture="camera">

input[type='file'] {
background: rgb(0, 0, 0);
border-radius: 5px;
color: rgb(255, 255, 255);
font-family: 'Lucida Grande';
padding: 0px 0px 0px 0px;
font-size: 16px;
margin-bottom: 20px;
width: 210px;
vertical-align: top;
margin-top: -2px;
}

是否有特定的 -webkit 类来禁用默认样式。

4

1 回答 1

3

您需要添加-webkit-appearence: none;

于 2013-05-25T18:37:45.797 回答