地址:http://www.qttc.net/201305334.html
代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>file标签隐藏</title>
</head>
<body>
<form action="http://192.168.1.99/upload/upload.php" method="post" enctype="multipart/form-data" style="display:none;">
<input onchange="document.forms[0].submit();" type="file" name="file" />
</form>
<a onclick="document.forms[0].file.click();" href="javascript:void(0);" >上传文件</a>
</body>
</html>