HTML文件选择器(输入类型=“文件”)按钮不';无法在chrome浏览器中正确显示

HTML文件选择器(输入类型=“文件”)按钮不';无法在chrome浏览器中正确显示,html,browser,forms,Html,Browser,Forms,我在index.php文件中有一个html文件选择器 //index.php (This is just an example) <form enctype="multipart/form-data" action="http://myserver/abc/upload.php" method="POST"> Select image to upload : <input name="photo" type="file" size="30" w

我在index.php文件中有一个html文件选择器

//index.php (This is just an example)
<form enctype="multipart/form-data" action="http://myserver/abc/upload.php" method="POST">
      Select image to upload :     
      <input name="photo" type="file" size="30" width="250">          
      <input type="submit" value="Upload"/>
</form>
//index.php(这只是一个示例)
选择要上载的图像:
在firefox浏览器中,我可以看到带有文本字段(显示文件路径)和名为“浏览”的按钮(作为普通文件选择字段)的文件选择器
但在chrome浏览器中,我看不到文本字段。按钮名称是“选择文件”而不是“浏览”。
我如何解决这个问题?

我需要在所有浏览器中显示它,就像在firefox浏览器中显示一样

没有标准的自定义文件输入样式的方法,但是你可以找到大量的css/js技巧。使用关键字:
自定义css文件输入

通过添加此内联样式更改文件类型