Web如何实现点击图片弹出上传文件窗口
这篇文章主要介绍Web如何实现点击图片弹出上传文件窗口,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
代码如下:
<style> .fileInputContainer{ height:256px; background:url(upfile.png); position:relative; width: 256px; } .fileInput{ height:256px; overflow: hidden; font-size: 300px; position:absolute; right:0; top:0; opacity: 0; filter:alpha(opacity=0); cursor:pointer; } </style> <div class="fileInputContainer"> <input class="fileInput" type="file" name="" id="" /> </div>
以上是“Web如何实现点击图片弹出上传文件窗口”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注行业资讯频道!