Html代码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>文件上传</title>
<style type="text/css">
label{
margin-top: 10px;
}
input{
margin-top: 10px;
}
h1{
color: #333;
font-size: 36px;
text-align: center;
margin-top: 50px;
}
form{
margin-top: 50px;
text-align: center;
}
input[type="file"]{
display: none;
}
label[for="file1"], label[for="file2"], label[for="file3"], label[for="file4"]{
display: inline-block;
width: 100px;
height: 30px;
line-height: 30px;
text-align: center;
border: 1px solid #ccc;
border-radius: 5px;