Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.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
在chrome中多次单击HTML输入类型文件_Html_Css - Fatal编程技术网

在chrome中多次单击HTML输入类型文件

在chrome中多次单击HTML输入类型文件,html,css,Html,Css,我有这个HTML输入元素 <input name="file_image" type="file" class="chosen_file" style="width:202px;color:rgba(255, 255, 255, 1);display: inline;" id="imgUpload" onchange="imgUploadValidation();" accept="image/*" />

我有这个HTML输入元素

<input name="file_image" type="file" 
       class="chosen_file" 
       style="width:202px;color:rgba(255, 255, 255, 1);display: inline;" 
       id="imgUpload" 
       onchange="imgUploadValidation();" 
       accept="image/*" />

在chrome浏览器中,当我多次单击
选择文件
按钮时,文件选择窗口也会多次弹出。比如,当我点击按钮3次后,会弹出一个窗口,点击取消按钮后,会弹出另一个窗口,依此类推。但这个问题只存在于chrome浏览器中。有什么想法吗