日期:2014-05-18  浏览次数:20762 次

怎样设置好呢?
<input   type= "file "> 中怎么设置才能使输入框不能输入值,但是可以通过浏览选择文件


谢谢!

------解决方案--------------------
try <input type= "file " readonly>
------解决方案--------------------

<form>

<input type=text name= "file " readonly>
<input style= "display:none; " type= "file " id= "upload ">
<input type=button onclick= "upload.click(); file.value=upload.value " value= "上传文件 ">
</form>

可以用个技巧