应用场景:(点击头像选择新图片,并上传)
html:
<em style="width: 60px;display: block;position: absolute;">
<input type="file" style="opacity:0; filter:alpha(opacity=0); height: 60px; width: 60px; position: absolute; top: 0; left: 0; z-index: 9;" onchange="handleFiles(this,'icon')">
<img src="{$headimgurl}"