原来样式改变不了(input type="file")

上传

<!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>

  

上一篇:“全栈2019”Java第九十四章:局部内部类详解


下一篇:“全栈2019”Java第二十九章:数组详解(中篇)