In web pages, when you need to upload files, the <input type=file> element will basically be used, and its default style:
Under chrome: IE under:No matter which of the above, the style is relatively simple and is not very harmonious with the style of many web pages.
There are more occasions for changing the display style according to user needs and design style.
How to implement it if you want to make a bootstrap-style upload button like the following.
Basic elements required to build the upload button
Copy the code