Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何更改上传文本语言?_Html_Codeigniter_Codeigniter 3 - Fatal编程技术网

Html 如何更改上传文本语言?

Html 如何更改上传文本语言?,html,codeigniter,codeigniter-3,Html,Codeigniter,Codeigniter 3,我正在使用codeigniter 3.1 如何更改上载文本语言? <input type="file" name="file" /> 试试这个 HTML: <div> <input type='file'/> <span id='val'></span> <span id='button'>Select File</span> </div> 我非常确定浏览器语言会自动提

我正在使用codeigniter 3.1
如何更改上载文本语言?

<input type="file" name="file" />
试试这个

HTML:

<div>
    <input type='file'/>
    <span id='val'></span>
    <span id='button'>Select File</span>
</div>  

我非常确定浏览器语言会自动提供,因此您实际上不需要设置itI不知道它仍在向我显示
选择文件-未选择文件
您添加css和javascript了吗?或者可能是css配置。谢谢。你能回答这个问题吗?
<div>
    <input type='file'/>
    <span id='val'></span>
    <span id='button'>Select File</span>
</div>  
$('#button').click(function(){
   $("input[type='file']").trigger('click');
})

$("input[type='file']").change(function(){
   $('#val').text(this.value.replace(/C:\\fakepath\\/i, ''))
})