javascript - How to write this css after uploading
PHP中文网
PHP中文网 2017-05-19 10:40:24
0
3
478

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?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all (3)
刘奇

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)

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!