The input covers a whole block, but the actual requirement is that this 0.jpg is inside another input. . . Does the above need to define shadowdom?
Are there any ideas to beautify this default upload style?
淡淡烟草味2017-05-19 10:42:24
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
迷茫2017-05-19 10:42:24
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)