<html>
<head><title>asdf</title>
</head>
<body>
<form name=formen>
<input type="file" name="picpath" id="picpath" style="display:none" onChange="document.getElementById('filetext').value=this.value;">
<input type="text" name=filetext readonly>
<input type=button name=btn onclick="document.formen.picpath.click()" value="Browse">
</form>
</body>
</html>
<head><title>asdf</title>
</head>
<body>
<form name=formen>
<input type="file" name="picpath" id="picpath" style="display:none" onChange="document.getElementById('filetext').value=this.value;">
<input type="text" name=filetext readonly>
<input type=button name=btn onclick="document.formen.picpath.click()" value="Browse">
</form>
</body>
</html>
你试试看就知道了,firefox和IE里的file类型的input的机制好像不一样