![原来样式改变不了(input type="file") 原来样式改变不了(input type="file")](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
上传
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
label{
border-radius: .4rem;
background-color: #979fa8;
color: #fff;
display: inline-block;
padding: .8rem 4rem;
cursor: pointer;
margin-bottom: 1rem;
position: relative;
overflow: hidden;
text-align: center;
transition: background-color .5s cubic-bezier(.24,.68,.67,.9);
}
span{
cursor: pointer;
pointer-events: none;
}
input[type=file] {
display: none;
visibility: hidden;
}
</style> </head>
<body>
<label>
<span>上传</span>
<input type="file"> </label>
</body>
</html>