【问题标题】:iOS styling an input type="file"iOS 样式化输入 type="file"
【发布时间】:2013-05-25 16:16:37
【问题描述】:

我正在尝试使用 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 类来禁用默认样式。

【问题讨论】:

    标签: ios css mobile-webkit


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-02-23
      • 2011-05-30
      • 1970-01-01
      • 2016-12-15
      • 2011-04-06
      • 2016-01-25
      • 2014-11-05
      相关资源
      最近更新 更多