如何将“选择文件"更改为“浏览"? [英] How to change “Choose file” into “Browse”?

查看:20
本文介绍了如何将“选择文件"更改为“浏览"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将 的默认值从选择文件"更改为浏览".怎么做?

I want to change the default value of <input type="file" /> from "Choose file" to "Browse". How to do that?

推荐答案

隐藏它并使用其他控件来触发它.

Hide it and use a other control to trigger it.

<a href="#" onclick="document.getElementById('fileID').click(); return false;" />Browse</a>
<input type="file" id="fileID" style="visibility: hidden;" />

这篇关于如何将“选择文件"更改为“浏览"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆