Hide the browse button on a input type=file

前端 未结 10 786
再見小時候
再見小時候 2020-12-11 14:33

Is there a way to hide the browse button and only leave the text box that works in all browsers?

I have tried setting the margins but they show up different in each

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-11 15:26

    You may just without making the element hidden, simply make it transparent by making its opacity to 0.

    Making the input file hidden will make it STOP working. So DON'T DO THAT..

    Here you can find an example for a transparent Browse operation;

提交回复
热议问题