Web实现点击图片弹出上传文件窗口代码

建站知识 2021-07-03 09:08www.168986.cn长沙网站建设

复制代码
代码如下:

<style>
.fileInputContainer{
height:256px;
background:url(upfile.png);
position:relative;
width: 256px;
}
.fileInput{
height:256px;
overflow: hidden;
font-size: 300px;
position:absolute;
right:0;
:0;
opacity: 0;
filter:alpha(opacity=0);
cursor:pointer;
}
</style>
<div class="fileInputContainer">
<input class="fileInput" type="file" name="" id="" />
</div>

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by