I encountered such a problem when I was doing the written test questions of Baixing.com in the past two days. I used the new features of HTML5 to implement an existing module of Baixing.com. After visiting Baixing.com for a while, I finally selected the form module for posting information. The reason is very simple. There are many new features for forms in HTML5. These new features are also very practical. After all, there are too many places where there are forms, such as registering, logging in, posting... (Hey, I'm a little off topic.)
At this time, I saw that there was such an element in the form in the original web page.
My first reaction is, ha, just input elements, just use CSS to customize the style, and then I naturally prepared right-click - review the elements to see how the specific styles are written by Baixing.com and found out later...
It must be that my opening method is wrong... Since that's the case, of course I have to do it myself and have enough food and clothing. One thing I can confirm is that if this form control for uploading files cannot run, you need to use input[type=file]. OK, just add this line of code:
Copy the code