81,091
社区成员
发帖
与我相关
我的任务
分享
<div class='file'>
<input type="file" class="file_file" id="file" onchange="setValue()"/>
<input type='text' class="file_txt" id='file_txt' />
<div class="file_button"></div>
</div>
.file{
width:300px;height:80px;
position:relative;
}
.file_file{
width:300px;
filter:alpha(opacity=0);
opacity:0;
position:absolute;left:0px;top:0px;
z-index:10;
}
.file_txt{
width:240px;height:20px;
text-align:left;
border:1px #a8a8a8 solid;
position:absolute;left:0px;top:0px;
z-index:1;
font-size:12px;
white-space:nowrap;
overflow:hidden;
line-height:20px;
}
.file_button{
width:50px;height:22px;
background:#a8a8a8;
position:absolute;right:0px;top:0px;
z-index:1;
}
上传的文件名:{{fileName}}