上传文件时候 input 悬停cursor:pointer 无效解决办法

      发布在:前端技术      评论:0 条评论

给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>


相关文章
热门推荐