<form action="" name="formx" method="post" enctype="multipart/form-data
">
<span>选择文件</span>
<input type="file" name="file" multiple="multiple" οnchange="setImagePreviews();" accept="image/gif,image/jpeg,image/jpg,image/png,image/svg">
<ul id="list"></ul>
</form>
* {
margin: 0;
padding: 0;
list-style: none;
}
body {
position: relative;
}
span {
display: inline-block;
width : 90px;
height: 35px;
line-height: 35px;
border: 1px solid #ccc;
border-radius: 5px;
text-align: center;
}
input[type="file"] {
width: 100px;
height: 40px;
position: absolute;
top: 0;
le