h5 input=file 按钮样式修改
<div class="fileBtn">
<input type="file" />
</div>
<style>
.fileBtn{
position: relative;
display: inline-block;
background: #409EFF;
border: 1px solid #409EFF;
border-radius: 4px;
padding: 5px 12px;
overflow: hidden;
color: #fff;
text-decoration: none;
text-indent: 0;
line-height: 20px;
cursor: pointer;
}
.fileBtn input {
position: absolute;
font-size: 100px;
right: 0;
top: 0;
opacity: 0;
cursor: pointer;
}
.fileBtn:hover {
background: #AADFFD;
border-color: #78C3F3;
color: #004974;
text-decoration: none;
cursor: pointer;
}
</style>
浙公网安备 33010602011771号