iOS 设置输入类型= "file"



我试图用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类来禁用默认样式

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

最新更新