javascript - customizing file upload to look same in all browsers -


this question has answer here:

how customize file upload,

<input type="file" /> 

to same in browsers? want invoke file browser on clicking on custom styled button.

you can overload style on upload button setting opacity of file upload 0 , putting div on top style want. e.g.

    <input style="opacity:0; position: fixed;" onchange="openfile(event)" type="file">     <div class="icon">open</div> 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -