<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<style type="text/css">
.upload-file{
position: relative;
width: 100px;
padding: 10px 15px;
border: 1px solid rgb(119, 154, 80);
border-radius: 5px;
background-color: rgb(66, 215, 142);
color: #333333;
font-size: 14px;
text-align: center;
overflow: hidden;
}
.upload-file span{
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.upload-file:hover{
font-size: 15px;
border-color: rgb(39, 226, 81);
}
.upload-file input[type='file']{
height: 100%;
width: 100%;
position: absolute;
top: 0;
right: 0;
opacity: 0;
filter: alpha(opacity=0);
cursor: pointer;
}
</style>
<body>
<div class="upload-file">
<input type="file" class="input-file" multiple="true">
<span class="tip">点击上传图片</span>
</div>
</body>
</html>
如图: