Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Is it possible, in a form, to cross the input text field and the browser button, whatever the browser !
<input id="fileuploadID" type="file" name="fileuploadID" />
This gives a text field following by the select file button.
没有。
这也没有意义,因为网站不应该获取所选文件的路径,并且用户不应该能够自由更改它。
有多种方法可以使用 CSS 重新设置输入元素的样式,但没有一种方法可以提供文件上传文本字段功能。