chrome 下 input[file] 元素cursor设置pointer不生效的解决

https://jingyan.baidu.com/article/48b558e32fabb67f38c09a81.html

环境是chrome浏览器,今天发现为html网页中的input [file] 元素鼠标样式cursor修改为pointer不生效,偶然发现了奇怪但有效的解决办法如下。

工具/原料

 
  • chrome浏览器
  • 文本编辑器

方法/步骤

 
  1. 1

    现象:

    chrome浏览器,将html网页中input [file] 元素css样式中的‘cursor’属性设置为‘pointer’,但是鼠标移上去后的形状还是箭头。

  2. 2

    解决办法:

    继续为input [file]元素添加css样式:"  font-size:0; ",鼠标再次移上去后就可以正常变成手形了。

posted @ 2018-12-24 09:32  GordonDicaprio  阅读(971)  评论(0编辑  收藏  举报