<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>自定义文件上传控件样式(兼容 IE6)</title>
<link href="/min/b=wp-content/themes/mangguo/css&f=reset.css,example.min.css" rel="stylesheet" />
<style>
.input-file {
display:inline-block;
width:100px;height:30px;line-height:30px;
background:#eee;
text-align:center;overflow:hidden;position:relative;
}
.input-file:hover {background:#ccc;}
.input-file input {
opacity:0; filter:alpha(opacity=0);
font-size:100px;position:absolute;top:0;right:0;
cursor:pointer;
}
</style>
</head>
<body>
<span class="input-file">浏览...<input type="file"></span>
<a href="javascript:void(0);" class="input-file">浏览...<input type="file"></a>
</body>
</html>