What is the best way to replace the file browse button in html?

前端 未结 5 1961
闹比i
闹比i 2020-12-03 07:59

I know that it\'s possible to replace the browse button, which is generated in html, when you use input tag with type=\"file.

I\'m not sure

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 08:09

    This isn't technically possible for security purposes, so the user cannot be misled.

    However, there are a couple of workarounds - take a look at http://www.quirksmode.org/dom/inputfile.html for one example.

    For the record, this question has already been asked here (where I gave the same answer).

提交回复
热议问题