input 上传文件 “浏览”两字能不能换?

来源:百度知道 编辑:UC知道 时间:2024/06/07 00:41:39

没有办法直接换,只有把这个<input type=file>隐藏了,另外建立一个button,用onclick仿真“浏览”被按下,例子代码如下:

<form name=formen>
<input type="file" name="picpath" id="picpath" style="display:none" onChange="document.formen.path.value=this.value">
<input name="path" readonly> <input type="button" value="Browse" onclick="document.formen.picpath.click()"> </form>