给input框的font-size设置成0 即可成功设置成pointer样式
<div class="tip" style="line-height: 30px;"><input class="file" type="file" onchange="avatar_upload(this)" id="avatar_uploder" name="file" style="opacity:0;cursor: pointer;position: absolute;z-index: 99;width: 60px;height: 30px;font-size: 0;">重新上传</div>
相关文章