If type = file is used, it is read-only. If you want it to be beautiful, just write the structure yourself. After the image is uploaded, src and title will be returned and filled in
Just position the input of 0.jpg behind the selected file (determine or relative positioning) You can also do it without Shadow Dom If you want to beautify it, you can refer to the styles of some plug-ins (bootstrap and jq have many plug-ins with these functions. You can imitate)
Wrap the label input style outside, don’t just change the label style
If type = file is used, it is read-only. If you want it to be beautiful, just write the structure yourself. After the image is uploaded, src and title will be returned and filled in
Just position the input of 0.jpg behind the selected file (determine or relative positioning)
You can also do it without Shadow Dom
If you want to beautify it, you can refer to the styles of some plug-ins (bootstrap and jq have many plug-ins with these functions. You can imitate)