<label class="h-upload">
<span class="h-upload-tit" id="pathText">图片</span>
<input type="file" name="photo" id="photo" οnchange="document.getElementById('pathText').innerText=this.value">
<!-- <i class="icon-remove-sign"></i> -->
</label>
/*上传头像*/
.h-upload{
.bsb();
position:relative;
input[type="file"]{
opacity:0;
position:absolute;
top:0;
left:0;
width:80%;
min-height:100%;
}
.icon-remove-sign{
color:@grey5;
position:absolute;
top:15px;
right:10px;
}
}