通过<input type="file">实现文件上传
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>定义input type="file"样式,点击上传</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<style type="text/css">
body{ font-size:14px;}
input{ vertical-align:middle; margin:0; padding:0}
.file-box{ position:relative;width:340px}
.txt{ height:22px; border:1px solid #cdcdcd; width:180px;}
.btn{ background-color:#FFF; border:1px solid #CDCDCD;height:24px; width:70px;}
.file{ position:absolute; top:0; right:80px; height:24px; filter:alpha(opacity:0);opacity: 0;width:260px }
/*filter:(alpha(opacity:0))*******属性。接低版本不支持,所以用opacity:0.3之后,还要使用/
</style>
</head>
<body>
<div clas