自定义input控件 type=file 样式
CSS样式:
.file {
position: relative;
display: inline-block;
background: #FFFCDA;
border: 0.1rem solid #FFF8B5;
border-radius: 0.2rem;
padding: 0.3rem;
overflow: hidden;
color: #999999;
text-decoration: none;
text-indent: 0;
line-height: 1.2rem;
}
HTML代码:
<input type="file"/>
我的笔记