标签文件上传按钮 [英] Labeling file upload button
本文介绍了标签文件上传按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将文件选择器的按钮文本进行国际化?例如,该代码向用户显示:
How can I internationalize the button text of the file picker? For example, what this code presents to the user:
<input type="file" .../>
推荐答案
通常由浏览器提供,很难改变,所以唯一的办法是CSS / JavaScript黑客,
It is normally provided by the browser and hard to change, so the only way around it will be a CSS/JavaScript hack,
查看以下链接了解一些方法:
See the following links for some approaches:
- http://www.shauninman.com / archive / 2007/09/10 / styling_file_inputs_with_css_and_the_dom
- http://www.quirksmode.org/dom/inputfile.html
- http://www.dreamincode.net/forums/showtopic15621.htm
- http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom
- http://www.quirksmode.org/dom/inputfile.html
- http://www.dreamincode.net/forums/showtopic15621.htm
这篇关于标签文件上传按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文