<input type="file" name="" id="">
根据项目需求隐藏"选择文件"文字;
方法:设置input的样式 filter:alpha(opacity=0);opacity:0;font-size:0
<style>
.ipt_btn{
background: lightsalmon;
border: 1px solid red;
width: 150px;
height: 40px;
line-height: 40px;
text-align: center;
border-radius: 10px;
color: #000;
}
</style>
<div class="ipt_btn">
<input type="file" name="" id="" multiple
style="filter:alpha(opacity=0);opacity:0;width:2rem;height:2rem;position: absolute;z-index:100;font-size:0">点击上传
</div>